cache handling

This commit is contained in:
phcoder 2009-10-18 00:23:00 +02:00
parent fdb3c3acb0
commit be320b471f
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,9 @@
#include <grub/symbol.h> #include <grub/symbol.h>
FUNCTION (grub_arch_sync_caches) /* FIXME: This should invalidate only part of memory. */
FUNCTION (grub_cpu_flush_cache) FUNCTION (grub_cpu_flush_cache)
FUNCTION (grub_arch_sync_caches)
#if __mips >= 2
sync
#endif
j $31 j $31

View file

@ -35,6 +35,9 @@ copycont1:
addiu $4, $4, 0xffff addiu $4, $4, 0xffff
subu $5,$4,$0 subu $5,$4,$0
bne $5, $0, copycont1 bne $5, $0, copycont1
#if __mips >= 2
sync
#endif
VARIABLE (grub_relocator32_forward_end) VARIABLE (grub_relocator32_forward_end)
VARIABLE (grub_relocator32_backward_start) VARIABLE (grub_relocator32_backward_start)
@ -51,4 +54,7 @@ copycont2:
addiu $4, 0xffff addiu $4, 0xffff
subu $5,$4,$0 subu $5,$4,$0
bne $5, $0, copycont2 bne $5, $0, copycont2
#if __mips >= 2
sync
#endif
VARIABLE (grub_relocator32_backward_end) VARIABLE (grub_relocator32_backward_end)