grub/kern/mips/cache.S

15 lines
300 B
ArmAsm
Raw Normal View History

2009-10-09 19:50:31 +02:00
#include <grub/symbol.h>
2009-10-18 00:23:00 +02:00
/* FIXME: This should invalidate only part of memory. */
2009-10-10 13:30:14 +02:00
FUNCTION (grub_cpu_flush_cache)
2009-10-18 00:23:00 +02:00
FUNCTION (grub_arch_sync_caches)
2009-10-24 10:58:20 +02: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 19:50:31 +02:00
j $31