Skip to content

Commit 893bb96

Browse files
Joris van RantwijkLinus Torvalds
authored andcommitted
[PATCH] uml: skas0 support for 2G/2G hosts
A quick hack to allow skas0 mode to run on 2G/2G hosts. 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>
1 parent c39e50b commit 893bb96

2 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎arch/um/Kconfig‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,6 @@ config STATIC_LINK
5757
chroot, and you disable CONFIG_MODE_TT, you probably want to say Y
5858
here.
5959

60-
config HOST_2G_2G
61-
bool "2G/2G host address space split"
62-
default n
63-
depends on MODE_TT
64-
help
65-
This is needed when the host on which you run has a 2G/2G memory
66-
split, instead of the customary 3G/1G.
67-
68-
Note that to enable such a host
69-
configuration, which makes sense only in some cases, you need special
70-
host patches.
71-
72-
So, if you do not know what to do here, say 'N'.
73-
7460
config KERNEL_HALF_GIGS
7561
int "Kernel address space size (in .5G units)"
7662
default "1"

‎arch/um/Kconfig.i386‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ config SEMAPHORE_SLEEPERS
1616
bool
1717
default y
1818

19+
config HOST_2G_2G
20+
bool "2G/2G host address space split"
21+
default n
22+
help
23+
This is needed when the host on which you run has a 2G/2G memory
24+
split, instead of the customary 3G/1G.
25+
26+
Note that to enable such a host
27+
configuration, which makes sense only in some cases, you need special
28+
host patches.
29+
30+
So, if you do not know what to do here, say 'N'.
31+
1932
config TOP_ADDR
2033
hex
2134
default 0xc0000000 if !HOST_2G_2G
@@ -35,11 +48,13 @@ config 3_LEVEL_PGTABLES
3548

3649
config STUB_CODE
3750
hex
38-
default 0xbfffe000
51+
default 0xbfffe000 if !HOST_2G_2G
52+
default 0x7fffe000 if HOST_2G_2G
3953

4054
config STUB_DATA
4155
hex
42-
default 0xbffff000
56+
default 0xbffff000 if !HOST_2G_2G
57+
default 0x7ffff000 if HOST_2G_2G
4358

4459
config STUB_START
4560
hex

0 commit comments

Comments
 (0)