Module Name: src
Committed By: matt
Date: Sat Jan 28 08:05:03 UTC 2012
Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: mips_machdep.c
Log Message:
Fix mm_md_direct_mapped_phys
To generate a diff of this commit:
cvs rdiff -u -r1.205.4.1.2.1.2.61 -r1.205.4.1.2.1.2.62 \
src/sys/arch/mips/mips/mips_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.61 src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.62
--- src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.61 Sat Jan 28 00:56:34 2012
+++ src/sys/arch/mips/mips/mips_machdep.c Sat Jan 28 08:05:03 2012
@@ -2439,21 +2439,20 @@ bool
mm_md_direct_mapped_phys(paddr_t pa, vaddr_t *vap)
{
#ifdef _LP64
- if (MIPS_XKSEG_P(pa)) {
- *vap = MIPS_PHYS_TO_XKPHYS_CACHED(pa);
- return true;
- }
-#endif
+ *vap = MIPS_PHYS_TO_XKPHYS_CACHED(pa);
+ return true;
+#else
#ifdef ENABLE_MIPS_KSEGX
if (mips_ksegx_start <= pa && pa < mips_ksegx_start + VM_KSEGX_SIZE) {
*vap = VM_KSEGX_ADDRESS + pa - mips_ksegx_start;
return true;
}
#endif
- if (MIPS_KSEG0_P(pa)) {
+ if (pa <= MIPS_PHYS_MASK) {
*vap = MIPS_PHYS_TO_KSEG0(pa);
return true;
}
return false;
+#endif
}