working but suboptimal cache flusher
This commit is contained in:
parent
1e1ddb6cb9
commit
e6efd24fa0
1 changed files with 8 additions and 3 deletions
|
@ -3,7 +3,12 @@
|
||||||
/* FIXME: This should invalidate only part of memory. */
|
/* FIXME: This should invalidate only part of memory. */
|
||||||
FUNCTION (grub_cpu_flush_cache)
|
FUNCTION (grub_cpu_flush_cache)
|
||||||
FUNCTION (grub_arch_sync_caches)
|
FUNCTION (grub_arch_sync_caches)
|
||||||
#if __mips >= 2
|
repeat:
|
||||||
sync
|
cache 1, 0($a0)
|
||||||
#endif
|
cache 0, 0($a0)
|
||||||
|
cache 3, 0($a0)
|
||||||
|
cache 0, 0($a0)
|
||||||
|
addiu $a0, $a0, 1
|
||||||
|
addiu $a1, $a1, 0xffff
|
||||||
|
bne $a1, $zero, repeat
|
||||||
j $31
|
j $31
|
||||||
|
|
Loading…
Reference in a new issue