From d4d6a407f74e241c0d00c2eeac2fb85e7f08f989 Mon Sep 17 00:00:00 2001
From: David Hendricks <dhendrix@chromium.org>
Date: Thu, 28 Mar 2013 18:28:30 -0700
Subject: 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)
---
 src/arch/armv7/lib/mmu.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src')

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)
-- 
cgit v1.2.3