Add MULTIPROCESSOR tlb flushes to armv7_tlb_flushID. Also, invalidate the
branch predictor. This function is only used by db_write_bytes and kobj_machdep
This commit is contained in:
parent
cac6d59cc3
commit
930f1887e6
@ -108,8 +108,15 @@ END(armv7_tlb_flushD)
|
||||
|
||||
STRONG_ALIAS(armv7_tlb_flushI, armv7_tlb_flushID)
|
||||
ENTRY(armv7_tlb_flushID)
|
||||
dsb
|
||||
mov r0, #0
|
||||
#ifdef MULTIPROCESSOR
|
||||
mcr p15, 0, r0, c8, c3, 0 @ flush entire I+D tlb, IS
|
||||
mcr p15, 0, r0, c7, c1, 6 @ branch predictor invalidate, IS
|
||||
#else
|
||||
mcr p15, 0, r0, c8, c7, 0 @ flush entire I+D tlb
|
||||
mcr p15, 0, r0, c7, c5, 6 @ branch predictor invalidate
|
||||
#endif
|
||||
dsb @ data synchronization barrier
|
||||
isb
|
||||
bx lr
|
||||
|
Loading…
Reference in New Issue
Block a user