summaryrefslogtreecommitdiffstats
path: root/include/qemu/osdep.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-04-30 13:49:11 -0700
committerRichard Henderson <rth@twiddle.net>2014-06-23 07:32:27 -0700
commit2b45c3f5008bf760e628126f0344c1effbee0714 (patch)
tree03838224e3f7a2ca7995052f5fa557aecf456f3a /include/qemu/osdep.h
parent40d964b563d144cae459c39fd6e3a6cd7b34127a (diff)
downloadhqemu-2b45c3f5008bf760e628126f0344c1effbee0714.zip
hqemu-2b45c3f5008bf760e628126f0344c1effbee0714.tar.gz
qemu/osdep: Remove the need for qemu_init_auxval
Instead of getting backup auxv data from the env pointer given to main, read it from /proc/self/auxv. We can do this at any time, so we're not tied to any ordering wrt a call to qemu_init_auxval from main. Tested-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r--include/qemu/osdep.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 6d35c1b..8480d52 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -251,18 +251,6 @@ unsigned long qemu_getauxval(unsigned long type);
static inline unsigned long qemu_getauxval(unsigned long type) { return 0; }
#endif
-/**
- * qemu_init_auxval:
- * @envp: the third argument to main
- *
- * If supported and required, locate the auxiliary vector at program startup.
- */
-#if defined(CONFIG_GETAUXVAL) || !defined(__linux__)
-static inline void qemu_init_auxval(char **envp) { }
-#else
-void qemu_init_auxval(char **envp);
-#endif
-
void qemu_set_tty_echo(int fd, bool echo);
void os_mem_prealloc(int fd, char *area, size_t sz);
OpenPOWER on IntegriCloud