]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] UML: Split out arch link address definitions
authorJeff Dike <jdike@addtoit.com>
Tue, 11 Jan 2005 11:14:08 +0000 (03:14 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 11:14:08 +0000 (03:14 -0800)
Define addresses at which UML will link and make them settable by the arch.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/Kconfig_arch [new file with mode: 0644]
arch/um/Kconfig_i386
arch/um/Makefile-i386
arch/um/kernel/skas/mem.c

diff --git a/arch/um/Kconfig_arch b/arch/um/Kconfig_arch
new file mode 100644 (file)
index 0000000..2f5f053
--- /dev/null
@@ -0,0 +1,16 @@
+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.
index 342f50a0570961b77742502a2f20605f4ec77d32..2f5f053bc461952275028361dc6c38a31eb2c7be 100644 (file)
@@ -1,6 +1,12 @@
 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
@@ -8,4 +14,3 @@ config 3_LEVEL_PGTABLES
        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.
-
index 43991d9e3437f439eac051ee51034990e9aedb1d..97b223bfa78e579a53525141d26e5387e45c045d 100644 (file)
@@ -1,10 +1,6 @@
 SUBARCH_CORE := arch/um/sys-i386/
 
-ifeq ($(CONFIG_HOST_2G_2G), y)
-TOP_ADDR := 0x80000000
-else
-TOP_ADDR := 0xc0000000
-endif
+TOP_ADDR := $(CONFIG_TOP_ADDR)
 
 ifeq ($(CONFIG_MODE_SKAS),y)
   ifneq ($(CONFIG_MODE_TT),y)
index ec169a86cdbe2e38a86ca9cf231642ca1b7fac7b..438db2f43456b4b646a68be9e63e4e0870a8e122 100644 (file)
@@ -13,8 +13,13 @@ unsigned long set_task_sizes_skas(int arg, unsigned long *host_size_out,
        /* Round up to the nearest 4M */
        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;
        *task_size_out = top;
+#endif
        return(((unsigned long) set_task_sizes_skas) & ~0xffffff);
 }