mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
[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 <[email protected]> Signed-off-by: Jeff Dike <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
committed by
Linus Torvalds
parent
675dffc914
commit
1f3be588b5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user