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:
parent
0004c0deec
commit
c99ae5d9a9
|
@ -108,6 +108,12 @@ static inline void tlbiall(void)
|
|||
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) */
|
||||
static inline void write_dacr(uint32_t val)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue