summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-08-31 04:27:21 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-31 04:27:21 -0700
commit50eb14c6ebde22643fa2683e81a2d3aa82f873b4 (patch)
tree72cfb3821055eab20617cdd4c8469bdab5da0bc4 /include/linux
parent688b2251b6e5da06f239e838354244edf4680277 (diff)
[PATCH] Add 3GB personality
From: Andi Kleen <ak@muc.de> Another a bit ugly but necessary patch for 32bit emulation. Some applications including some versions of java break when the stack is beyond the i386 standard 3GB boundary. For these add a 3GB personality that moves the stack to 3GB and fixes the beginning of the mmap area. It's a bit ugly, but better than not running these applications at all (e.g. the Oracle installer depends on such a buggy java :-(). It's also not only Java, but some other programs as well.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/personality.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/personality.h b/include/linux/personality.h
index 33802c8eeedb..14b91221d3e8 100644
--- a/include/linux/personality.h
+++ b/include/linux/personality.h
@@ -34,6 +34,7 @@ enum {
SHORT_INODE = 0x1000000,
WHOLE_SECONDS = 0x2000000,
STICKY_TIMEOUTS = 0x4000000,
+ ADDR_LIMIT_3GB = 0x8000000,
};
/*
@@ -56,6 +57,7 @@ enum {
PER_SUNOS = 0x0006 | STICKY_TIMEOUTS,
PER_XENIX = 0x0007 | STICKY_TIMEOUTS | SHORT_INODE,
PER_LINUX32 = 0x0008,
+ PER_LINUX32_3GB = 0x0008 | ADDR_LIMIT_3GB,
PER_IRIX32 = 0x0009 | STICKY_TIMEOUTS,/* IRIX5 32-bit */
PER_IRIXN32 = 0x000a | STICKY_TIMEOUTS,/* IRIX6 new 32-bit */
PER_IRIX64 = 0x000b | STICKY_TIMEOUTS,/* IRIX6 64-bit */