summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2010-04-30 17:12:20 +0000
committerrrs <rrs@FreeBSD.org>2010-04-30 17:12:20 +0000
commitc5fa73f93d7d28784831dd890d6c32a9a2ba9c32 (patch)
treedca85c003e914e38cf49b9929abe9db2a9b69c5a
parent3eac0000f02cd2cb160464ae01b04fe3415e4b60 (diff)
downloadFreeBSD-src-c5fa73f93d7d28784831dd890d6c32a9a2ba9c32.zip
FreeBSD-src-c5fa73f93d7d28784831dd890d6c32a9a2ba9c32.tar.gz
Bug in the memory mapping module. The wrong
physaddr was being used in the macro (1 should be used not 2)... Obtained from: JC
-rw-r--r--sys/mips/mips/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index 826177f..af9ef43 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -236,7 +236,7 @@ caddr_t virtual_sys_start = (caddr_t)0;
sched_pin(); \
va1 = sysm->base; \
va2 = sysm->base + PAGE_SIZE; \
- npte = mips_paddr_to_tlbpfn(phys2) | \
+ npte = mips_paddr_to_tlbpfn(phys1) | \
PTE_RW | PTE_V | PTE_G | PTE_W | PTE_CACHE; \
pte = pmap_pte(kernel_pmap, va1); \
*pte = npte; \
OpenPOWER on IntegriCloud