Module Name: src Committed By: matt Date: Fri Feb 10 07:19:44 UTC 2012
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: pmap.c Log Message: Teach pmap_extract about KSEGX. To generate a diff of this commit: cvs rdiff -u -r1.179.16.37 -r1.179.16.38 src/sys/arch/mips/mips/pmap.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/pmap.c diff -u src/sys/arch/mips/mips/pmap.c:1.179.16.37 src/sys/arch/mips/mips/pmap.c:1.179.16.38 --- src/sys/arch/mips/mips/pmap.c:1.179.16.37 Fri Feb 10 07:14:49 2012 +++ src/sys/arch/mips/mips/pmap.c Fri Feb 10 07:19:44 2012 @@ -1838,6 +1838,12 @@ pmap_extract(pmap_t pmap, vaddr_t va, pa pa = MIPS_XKPHYS_TO_PHYS(va); goto done; } +#elif defined(ENABLE_MIPS_KSEGX) + if (VM_KSEGX_ADDRESS <= va + && va < VM_KSEGX_ADDRESS + VM_KSEGX_SIZE) + pa = mips_ksegx_start + va - VM_KSEGX_ADDRESS; + goto done; + } #endif #ifdef DIAGNOSTIC if (MIPS_KSEG1_P(va))