grub/kern/mips/cache.S

15 lines
300 B
ArmAsm
Raw Normal View History

2009-10-09 17:50:31 +00:00
#include <grub/symbol.h>
2009-10-17 22:23:00 +00:00
/* FIXME: This should invalidate only part of memory. */
2009-10-10 11:30:14 +00:00
FUNCTION (grub_cpu_flush_cache)
2009-10-17 22:23:00 +00:00
FUNCTION (grub_arch_sync_caches)
2009-10-24 08:58:20 +00:00
repeat:
cache 1, 0($a0)
cache 0, 0($a0)
cache 3, 0($a0)
cache 0, 0($a0)
addiu $a0, $a0, 1
addiu $a1, $a1, 0xffff
bne $a1, $zero, repeat
2009-10-09 17:50:31 +00:00
j $31