svn commit: r238031 - head/sys/powerpc/booke
Marcel Moolenaar
marcel at FreeBSD.org
Mon Jul 2 21:15:57 UTC 2012
Author: marcel
Date: Mon Jul 2 21:15:56 2012
New Revision: 238031
URL: http://svn.freebsd.org/changeset/base/238031
Log:
Invalidate any TLB1 entries we don't need. The firmware (e.g. U-Boot)
may have added entries that conflict with TLB0 entries.
Modified:
head/sys/powerpc/booke/pmap.c
Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c Mon Jul 2 21:11:01 2012 (r238030)
+++ head/sys/powerpc/booke/pmap.c Mon Jul 2 21:15:56 2012 (r238031)
@@ -3042,6 +3042,10 @@ tlb1_init(vm_offset_t ccsrbar)
/* Map in CCSRBAR. */
tlb1_set_entry(CCSRBAR_VA, ccsrbar, CCSRBAR_SIZE, _TLB_ENTRY_IO);
+ /* Purge the remaining entries */
+ for (i = tlb1_idx; i < TLB1_ENTRIES; i++)
+ tlb1_write_entry(i);
+
/* Setup TLB miss defaults */
set_mas4_defaults();
}
More information about the svn-src-head
mailing list