MIPS: Ensure cache ops complete in mips_cache_reset
Ensure that cache operations complete before returning from mips_cache_reset by placing a completion barrier (sync instruction) before the return. Without this there is no guarantee that the cache ops will complete before any subsequent memory accesses, since they are indexed cache ops & thus not implicitly ordered with memory accesses. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
This commit is contained in:
parent
d608254b0a
commit
639200f6a0
|
@ -420,6 +420,8 @@ l2_unbypass:
|
|||
#endif
|
||||
|
||||
return:
|
||||
/* Ensure all cache operations complete before returning */
|
||||
sync
|
||||
jr ra
|
||||
END(mips_cache_reset)
|
||||
|
||||
|
|
Loading…
Reference in New Issue