David Hendricks (dhendrix@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2946
-gerrit
commit b641366b56ef72edcdcf327f7264730d88ff25e1 Author: David Hendricks dhendrix@chromium.org Date: Thu Mar 28 18:28:30 2013 -0700
armv7: invalidate TLB after changing translation table entries
This adds a call to tlb_invalidate_all() after configuring a range of memory.
Change-Id: I558402e7e54b6bf9e0b013f153d9b84c0873a6cf Signed-off-by: David Hendricks dhendrix@chromium.org --- src/arch/armv7/lib/mmu.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/arch/armv7/lib/mmu.c b/src/arch/armv7/lib/mmu.c index d55d4bd..224b566 100644 --- a/src/arch/armv7/lib/mmu.c +++ b/src/arch/armv7/lib/mmu.c @@ -88,6 +88,9 @@ void mmu_config_range(unsigned long start_mb, unsigned long size_mb,
for (i = start_mb; i < start_mb + size_mb; i++) ttb_entry[i] = (i << 20) | attr; + + /* TODO: add helper to invalidate TLB by MVA */ + tlb_invalidate_all(); }
void mmu_init(void)