diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-03-13 14:58:02 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-03-13 14:58:02 +0000 |
commit | 15d1cdd161986839d5cebb42a4e2295aa11bbaca (patch) | |
tree | 2cdc92ede096878311ecd5f49a49943453092d6e /sys/amd64/linux32/linux.h | |
parent | 8eb95e96298f4997fb6abe947fea52b360e32704 (diff) | |
download | FreeBSD-src-15d1cdd161986839d5cebb42a4e2295aa11bbaca.zip FreeBSD-src-15d1cdd161986839d5cebb42a4e2295aa11bbaca.tar.gz |
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
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 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 */ |