diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2011-03-13 14:58:02 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2011-03-13 14:58:02 +0000 |
commit | 8f1e49a63851dd6485b00e07d952f926626ee6d8 (patch) | |
tree | 2cdc92ede096878311ecd5f49a49943453092d6e /sys/amd64/linux32/linux.h | |
parent | 3a8a826af387e3cd529b2b01dec3e314538b5de2 (diff) | |
download | src-8f1e49a63851dd6485b00e07d952f926626ee6d8.tar.gz src-8f1e49a63851dd6485b00e07d952f926626ee6d8.zip |
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
Notes
Notes:
svn path=/head/; revision=219609
Diffstat (limited to 'sys/amd64/linux32/linux.h')
-rw-r--r-- | sys/amd64/linux32/linux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 555a91256b18..4a5ec011c7e8 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 */ |