diff options
| author | matt <matt@NetBSD.org> | 2003-02-05 07:16:27 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2003-02-05 07:16:27 +0000 |
| commit | 6522fb435a4284d6861424496df54ffe00983b4e (patch) | |
| tree | cd888dcb98e9089671e0141a27018895cc4c2129 /sys | |
| parent | 3cdbb8ccfeb499a5fbf2f4e490f1988cebbbc602 (diff) | |
Make LP64 friendly.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/powerpc/include/oea/vmparam.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/oea/vmparam.h b/sys/arch/powerpc/include/oea/vmparam.h index 05f380eae61..a55c670f626 100644 --- a/sys/arch/powerpc/include/oea/vmparam.h +++ b/sys/arch/powerpc/include/oea/vmparam.h @@ -49,6 +49,10 @@ #define USRSTACK VM_MAXUSER_ADDRESS #endif +#ifndef USRSTACK32 +#define USRSTACK32 ((uint32_t)VM_MAXUSER_ADDRESS) +#endif + #ifndef MAXTSIZ #define MAXTSIZ (64*1024*1024) /* maximum text size */ #endif @@ -94,8 +98,8 @@ /* * Segment handling stuff */ -#define SEGMENT_LENGTH 0x10000000 -#define SEGMENT_MASK 0xf0000000 +#define SEGMENT_LENGTH ( 0x10000000L) +#define SEGMENT_MASK (~0x0fffffffL) /* * Macros to manipulate VSIDs @@ -138,7 +142,7 @@ #endif #define VM_MIN_ADDRESS ((vaddr_t) 0) -#define VM_MAXUSER_ADDRESS ((vaddr_t) 0xfffff000) +#define VM_MAXUSER_ADDRESS ((vaddr_t) ~0xfffL) #define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS #define VM_MIN_KERNEL_ADDRESS ((vaddr_t) (KERNEL_SR << ADDR_SR_SHFT)) #define VM_MAX_KERNEL_ADDRESS (VM_MIN_KERNEL_ADDRESS + 2*SEGMENT_LENGTH) |
