Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2010 22:18:52 +0530
From:      "Jayachandran C." <c.jayachandran@gmail.com>
To:        Juli Mallett <jmallett@freebsd.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Fix for pmap.c
Message-ID:  <4bdb0900.0d67f10a.0ae4.7784@mx.google.com>

next in thread | raw e-mail | index | archive | help
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;							\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4bdb0900.0d67f10a.0ae4.7784>