svn commit: r196959 - projects/ppc64/sys/powerpc/aim64

Nathan Whitehorn nwhitehorn at FreeBSD.org
Tue Sep 8 04:06:41 UTC 2009


Author: nwhitehorn
Date: Tue Sep  8 04:06:41 2009
New Revision: 196959
URL: http://svn.freebsd.org/changeset/base/196959

Log:
  Fix an obvious mistake -- the high bits of translations can and should
  be respected now.

Modified:
  projects/ppc64/sys/powerpc/aim64/mmu_oea64.c

Modified: projects/ppc64/sys/powerpc/aim64/mmu_oea64.c
==============================================================================
--- projects/ppc64/sys/powerpc/aim64/mmu_oea64.c	Tue Sep  8 04:02:33 2009	(r196958)
+++ projects/ppc64/sys/powerpc/aim64/mmu_oea64.c	Tue Sep  8 04:06:41 2009	(r196959)
@@ -1026,6 +1026,9 @@ moea64_bridge_bootstrap(mmu_t mmup, vm_o
 				    translations[i].om_va + off);
 
 			m.phys_addr = translations[i].om_pa_lo + off;
+		      #ifdef __powerpc64
+			m.phys_addr += translations[i].om_pa_hi << 32;
+		      #endif
 			moea64_enter_locked(&ofw_pmap,
 			    translations[i].om_va + off, &m, VM_PROT_ALL, 1);
 


More information about the svn-src-projects mailing list