Commit cc5f6a67 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] UML: Split out arch link address definitions

Define addresses at which UML will link and make them settable by the arch.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4aa47296
config 64_BIT
bool
default n
config TOP_ADDR
hex
default 0xc0000000 if !HOST_2G_2G
default 0x80000000 if HOST_2G_2G
config 3_LEVEL_PGTABLES
bool "Three-level pagetables"
default n
help
Three-level pagetables will let UML have more than 4G of physical
memory. All the memory that can't be mapped directly will be treated
as high memory.
config 64_BIT config 64_BIT
bool bool
default n default n
config TOP_ADDR
hex
default 0xc0000000 if !HOST_2G_2G
default 0x80000000 if HOST_2G_2G
config 3_LEVEL_PGTABLES config 3_LEVEL_PGTABLES
bool "Three-level pagetables" bool "Three-level pagetables"
default n default n
...@@ -8,4 +14,3 @@ config 3_LEVEL_PGTABLES ...@@ -8,4 +14,3 @@ config 3_LEVEL_PGTABLES
Three-level pagetables will let UML have more than 4G of physical Three-level pagetables will let UML have more than 4G of physical
memory. All the memory that can't be mapped directly will be treated memory. All the memory that can't be mapped directly will be treated
as high memory. as high memory.
SUBARCH_CORE := arch/um/sys-i386/ SUBARCH_CORE := arch/um/sys-i386/
ifeq ($(CONFIG_HOST_2G_2G), y) TOP_ADDR := $(CONFIG_TOP_ADDR)
TOP_ADDR := 0x80000000
else
TOP_ADDR := 0xc0000000
endif
ifeq ($(CONFIG_MODE_SKAS),y) ifeq ($(CONFIG_MODE_SKAS),y)
ifneq ($(CONFIG_MODE_TT),y) ifneq ($(CONFIG_MODE_TT),y)
......
...@@ -13,8 +13,13 @@ unsigned long set_task_sizes_skas(int arg, unsigned long *host_size_out, ...@@ -13,8 +13,13 @@ unsigned long set_task_sizes_skas(int arg, unsigned long *host_size_out,
/* Round up to the nearest 4M */ /* Round up to the nearest 4M */
unsigned long top = ROUND_4M((unsigned long) &arg); unsigned long top = ROUND_4M((unsigned long) &arg);
#ifdef CONFIG_HOST_TASK_SIZE
*host_size_out = CONFIG_HOST_TASK_SIZE;
*task_size_out = CONFIG_HOST_TASK_SIZE;
#else
*host_size_out = top; *host_size_out = top;
*task_size_out = top; *task_size_out = top;
#endif
return(((unsigned long) set_task_sizes_skas) & ~0xffffff); return(((unsigned long) set_task_sizes_skas) & ~0xffffff);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment