From 15d1cdd161986839d5cebb42a4e2295aa11bbaca Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 13 Mar 2011 14:58:02 +0000 Subject: Enable shared page use for amd64/linux32 and i386/linux binaries. Move signal trampoline code from the top of the stack to the shared page. MFC after: 2 Weeks --- sys/amd64/linux32/linux.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/amd64/linux32/linux.h') diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 555a912..4a5ec01 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -47,7 +47,10 @@ extern u_char linux_debug_map[]; MALLOC_DECLARE(M_LINUX); #endif -#define LINUX32_USRSTACK ((1ul << 32) - PAGE_SIZE) +#define LINUX32_MAXUSER ((1ul << 32) - PAGE_SIZE) +#define LINUX32_SHAREDPAGE (LINUX32_MAXUSER - PAGE_SIZE) +#define LINUX32_USRSTACK LINUX32_SHAREDPAGE + /* XXX 16 = sizeof(linux32_ps_strings) */ #define LINUX32_PS_STRINGS (LINUX32_USRSTACK - 16) #define LINUX32_MAXDSIZ (512 * 1024 * 1024) /* 512MB */ -- cgit v1.1