aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2015-09-02 03:38:53 +0200
committerRiku Voipio <riku.voipio@linaro.org>2015-09-28 16:29:11 +0300
commit59baae9a626396a3a05840279084c4bf2beb8f40 (patch)
tree2a7f5e111a6dba05b2553f8fd1182b863ffb5090 /linux-user/qemu.h
parent84646ee25b68321624ef4768011e91064e4bd440 (diff)
downloadqemu-59baae9a626396a3a05840279084c4bf2beb8f40.zip
qemu-59baae9a626396a3a05840279084c4bf2beb8f40.tar.gz
qemu-59baae9a626396a3a05840279084c4bf2beb8f40.tar.bz2
linux-user: remove MAX_ARG_PAGES limit
Instead of creating a temporary copy for the whole environment and the arguments, directly copy everything to the target stack. For this to work, we have to change the order of stack creation and copying the arguments. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 678e5d6..bd90cc3 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -143,12 +143,6 @@ extern const char *qemu_uname_release;
extern unsigned long mmap_min_addr;
/* ??? See if we can avoid exposing so much of the loader internals. */
-/*
- * MAX_ARG_PAGES defines the number of pages allocated for arguments
- * and envelope for the new program. 32 should suffice, this gives
- * a maximum env+arg of 128kB w/4KB pages!
- */
-#define MAX_ARG_PAGES 33
/* Read a good amount of data initially, to hopefully get all the
program headers loaded. */
@@ -160,7 +154,6 @@ extern unsigned long mmap_min_addr;
*/
struct linux_binprm {
char buf[BPRM_BUF_SIZE] __attribute__((aligned));
- void *page[MAX_ARG_PAGES];
abi_ulong p;
int fd;
int e_uid, e_gid;