Fix for pmap.c

Jayachandran C. c.jayachandran at gmail.com
Fri Apr 30 16:45:35 UTC 2010


There seems to be a obvious bug in the current pmap.c, can you please
review/apply the patch below.

This seems to be the cause of the crashes I'm seeing in HEAD. I'm still
testing with the patch, the buildworld I use will have to run a few more
hours to be completely sure that this is the problem.

JC.


Index: sys/mips/mips/pmap.c
===================================================================
--- sys/mips/mips/pmap.c	(revision 207433)
+++ sys/mips/mips/pmap.c	(working copy)
@@ -236,7 +236,7 @@
 	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;							\


More information about the freebsd-mips mailing list