armv7: add wrapper for tlbimvaa

This adds an inline wrapper for the TLBIMVAA instruction (invalidate
unified TLB by MVA, all address space identifiers).

Change-Id: Ibcd289ecedaba8586ade26e36c177ff1fcaf91d3
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/3161
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
David Hendricks 2013-04-30 12:20:53 -07:00 committed by Ronald G. Minnich
parent 0004c0deec
commit c99ae5d9a9
1 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,12 @@ static inline void tlbiall(void)
asm volatile ("mcr p15, 0, %0, c8, c7, 0" : : "r" (0) : "memory"); asm volatile ("mcr p15, 0, %0, c8, c7, 0" : : "r" (0) : "memory");
} }
/* invalidate unified TLB by MVA, all ASID */
static inline void tlbimvaa(unsigned long mva)
{
asm volatile ("mcr p15, 0, %0, c8, c7, 3" : : "r" (mva) : "memory");
}
/* write data access control register (DACR) */ /* write data access control register (DACR) */
static inline void write_dacr(uint32_t val) static inline void write_dacr(uint32_t val)
{ {