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>
Reviewed-on: http://review.coreboot.org/2946
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
David Hendricks 2013-03-28 18:28:30 -07:00
parent 7b19f66902
commit d4d6a407f7
1 changed files with 3 additions and 0 deletions

View File

@ -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++) for (i = start_mb; i < start_mb + size_mb; i++)
ttb_entry[i] = (i << 20) | attr; ttb_entry[i] = (i << 20) | attr;
/* TODO: add helper to invalidate TLB by MVA */
tlb_invalidate_all();
} }
void mmu_init(void) void mmu_init(void)