diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-03 05:12:27 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 12:14:14 +0300 |
commit | 8bcd17411643beb9a601e032d0cf1016909a81d3 (patch) | |
tree | fc71e788df4fada768247fa7c12e983d2f6f1a32 /include/asm-sparc64/a.out.h | |
parent | 45f791eb0f03e760183d30d3f1f18dc2b8e902fe (diff) | |
download | linux-8bcd17411643beb9a601e032d0cf1016909a81d3.tar.xz |
[SPARC64]: Do not allow mapping pages within 4GB of 64-bit VA hole.
The UltraSPARC T1 manual recommends this because the chip
could instruction prefetch into the VA hole, and this would
also make decoding certain kinds of memory access traps
more difficult (because the chip sign extends certain pieces
of trap state).
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/a.out.h')
-rw-r--r-- | include/asm-sparc64/a.out.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-sparc64/a.out.h b/include/asm-sparc64/a.out.h index 02af289e3f46..faac321d5594 100644 --- a/include/asm-sparc64/a.out.h +++ b/include/asm-sparc64/a.out.h @@ -95,7 +95,9 @@ struct relocation_info /* used when header.a_machtype == M_SPARC */ #ifdef __KERNEL__ -#define STACK_TOP (test_thread_flag(TIF_32BIT) ? 0xf0000000 : 0x80000000000L) +#define STACK_TOP (test_thread_flag(TIF_32BIT) ? \ + 0xf0000000 : \ + (0x0000080000000000UL - (1UL << 32UL))) #endif |