summaryrefslogtreecommitdiffstats
path: root/sys/compat/ia32/ia32_util.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-12-11 01:05:09 +0000
committerpeter <peter@FreeBSD.org>2003-12-11 01:05:09 +0000
commit90628de204fdfb510d2d28daf316a7988cfad80f (patch)
tree8460e4b3ec26fedf10dceba243c3a153399e4f23 /sys/compat/ia32/ia32_util.h
parent6a3f22c92823e5d15a6c77347f8607f856e4f108 (diff)
downloadFreeBSD-src-90628de204fdfb510d2d28daf316a7988cfad80f.zip
FreeBSD-src-90628de204fdfb510d2d28daf316a7988cfad80f.tar.gz
Assimilate ia64 back into the fold with the common freebsd32/ia32 code.
The split-up code is derived from the ia64 code originally. Note that I have only compile-tested this, not actually run-tested it. The ia64 side of the force is missing some significant chunks of signal delivery code.
Diffstat (limited to 'sys/compat/ia32/ia32_util.h')
-rw-r--r--sys/compat/ia32/ia32_util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/compat/ia32/ia32_util.h b/sys/compat/ia32/ia32_util.h
index f6de375..a2b88cb 100644
--- a/sys/compat/ia32/ia32_util.h
+++ b/sys/compat/ia32/ia32_util.h
@@ -37,8 +37,13 @@
#include <sys/sysent.h>
#include <sys/cdefs.h>
-#define FREEBSD32_USRSTACK ((1ul << 32) - PAGE_SIZE)
+#ifdef __ia64__
+#define FREEBSD32_USRSTACK ((1ul << 32) - IA32_PAGE_SIZE * 2)
+#else
+#define FREEBSD32_USRSTACK ((1ul << 32) - IA32_PAGE_SIZE)
+#endif
+#define IA32_PAGE_SIZE 4096
#define IA32_MAXDSIZ (512*1024*1024) /* 512MB */
#define IA32_MAXSSIZ (64*1024*1024) /* 64MB */
#define IA32_MAXVMEM 0 /* Unlimited */
OpenPOWER on IntegriCloud