diff options
author | Bodo Stroesser <bstroesser@fujitsu-siemens.com> | 2005-05-07 06:30:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-07 07:09:30 +0200 |
commit | 1f3be588b51e809476cdecd4eaf6fd04670d9c36 (patch) | |
tree | 4664c889c9e4d45d0c8ed8e39b54e7a9e242c251 /arch/um/kernel/tt/mem.c | |
parent | [PATCH] uml: Turn literal numbers into symbolic constants (diff) | |
download | linux-1f3be588b51e809476cdecd4eaf6fd04670d9c36.tar.xz linux-1f3be588b51e809476cdecd4eaf6fd04670d9c36.zip |
[PATCH] uml: Use CONFIG variable for address space size
tt/mem.c still uses hardcoded TOP for i386 instead of CONFIG_TOP_ADDR provided
by subarch's Kconfig_XXXX, which would be right.
Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/kernel/tt/mem.c')
-rw-r--r-- | arch/um/kernel/tt/mem.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/um/kernel/tt/mem.c b/arch/um/kernel/tt/mem.c index 74346a04a2b2..bcb8796c3cb1 100644 --- a/arch/um/kernel/tt/mem.c +++ b/arch/um/kernel/tt/mem.c @@ -21,14 +21,8 @@ void before_mem_tt(unsigned long brk_start) remap_data(UML_ROUND_DOWN(&__bss_start), UML_ROUND_UP(&_end), 1); } -#ifdef CONFIG_HOST_2G_2G -#define TOP 0x80000000 -#else -#define TOP 0xc0000000 -#endif - #define SIZE ((CONFIG_NEST_LEVEL + CONFIG_KERNEL_HALF_GIGS) * 0x20000000) -#define START (TOP - SIZE) +#define START (CONFIG_TOP_ADDR - SIZE) unsigned long set_task_sizes_tt(int arg, unsigned long *host_size_out, unsigned long *task_size_out) |