mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
40d964b563
commit
2b45c3f500
4 changed files with 39 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue