PERFORCE change 30223 for review
Juli Mallett
jmallett at FreeBSD.org
Wed Apr 30 18:31:50 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30223
Change 30223 by jmallett at jmallett_dalek on 2003/04/30 18:31:10
Zero-extend PHYS_MASK (bogus..), add KSEG2 conversion macros.
Affected files ...
.. //depot/projects/mips/sys/mips/include/cpuregs.h#6 edit
Differences ...
==== //depot/projects/mips/sys/mips/include/cpuregs.h#6 (text+ko) ====
@@ -82,12 +82,14 @@
#define MIPS_MAX_MEM_ADDR 0xbe000000
#define MIPS_RESERVED_ADDR 0xbfc80000
-#define MIPS_PHYS_MASK 0x1fffffff
+#define MIPS_PHYS_MASK 0x000000001fffffff
#define MIPS_KSEG0_TO_PHYS(x) ((unsigned)(x) & MIPS_PHYS_MASK)
#define MIPS_PHYS_TO_KSEG0(x) ((unsigned)(x) | MIPS_KSEG0_START)
#define MIPS_KSEG1_TO_PHYS(x) ((unsigned)(x) & MIPS_PHYS_MASK)
#define MIPS_PHYS_TO_KSEG1(x) ((unsigned)(x) | MIPS_KSEG1_START)
+#define MIPS_KSEG2_TO_PHYS(x) ((unsigned)(x) & MIPS_PHYS_MASK)
+#define MIPS_PHYS_TO_KSEG2(x) ((unsigned)(x) | MIPS_KSEG2_START)
/* Map virtual address to index in mips3 r4k virtually-indexed cache */
#define MIPS3_VA_TO_CINDEX(x) \
More information about the p4-projects
mailing list