Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include/oea Make LP64 friendly.



details:   https://anonhg.NetBSD.org/src/rev/482e9f5c27af
branches:  trunk
changeset: 542731:482e9f5c27af
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Feb 05 07:16:27 2003 +0000

description:
Make LP64 friendly.

diffstat:

 sys/arch/powerpc/include/oea/vmparam.h |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 795b2e14a27e -r 482e9f5c27af sys/arch/powerpc/include/oea/vmparam.h
--- a/sys/arch/powerpc/include/oea/vmparam.h    Wed Feb 05 07:05:19 2003 +0000
+++ b/sys/arch/powerpc/include/oea/vmparam.h    Wed Feb 05 07:16:27 2003 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index