Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2010 17:12:20 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207441 - head/sys/mips/mips
Message-ID:  <201004301712.o3UHCKvd028285@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Fri Apr 30 17:12:20 2010
New Revision: 207441
URL: http://svn.freebsd.org/changeset/base/207441

Log:
  Bug in the memory mapping module. The wrong
  physaddr was being used in the macro (1 should be
  used not 2)...
  
  Obtained from:	JC

Modified:
  head/sys/mips/mips/pmap.c

Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c	Fri Apr 30 17:08:27 2010	(r207440)
+++ head/sys/mips/mips/pmap.c	Fri Apr 30 17:12:20 2010	(r207441)
@@ -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;							\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004301712.o3UHCKvd028285>