summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-03-28 18:28:30 -0700
committerDavid Hendricks <dhendrix@chromium.org>2013-03-29 18:20:33 +0100
commitd4d6a407f74e241c0d00c2eeac2fb85e7f08f989 (patch)
treec2663433d844d20d77036c35f2e6bf5e28f5414f /src
parent7b19f669025a9f1dfc32035d7c93231e7a59c456 (diff)
downloadcoreboot-d4d6a407f74e241c0d00c2eeac2fb85e7f08f989.tar.xz
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)
Diffstat (limited to 'src')
-rw-r--r--src/arch/armv7/lib/mmu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/armv7/lib/mmu.c b/src/arch/armv7/lib/mmu.c
index d55d4bd681..224b566a50 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)