]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
cache handling
authorphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:23:00 +0000 (00:23 +0200)
committerphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:23:00 +0000 (00:23 +0200)
kern/mips/cache.S
lib/mips/relocator_asm.S

index f613f57f23497d2e9e75955666c585fdbebc8b33..ec13a9b95dab246e3d32bb13e4fb396e7ed33a70 100644 (file)
@@ -1,5 +1,9 @@
 #include <grub/symbol.h>
 
-FUNCTION (grub_arch_sync_caches)
+       /* FIXME: This should invalidate only part of memory.  */
 FUNCTION (grub_cpu_flush_cache)
+FUNCTION (grub_arch_sync_caches)
+#if __mips >= 2
+       sync
+#endif
        j $31
index 8dea8a4e30cd8a9436507838137c1ce38b5681c1..5503b4032743effb5d5ab5714fd9e1f29e9a187e 100644 (file)
@@ -35,6 +35,9 @@ copycont1:
        addiu $4, $4, 0xffff
        subu $5,$4,$0
        bne $5, $0, copycont1
+#if __mips >= 2
+       sync
+#endif
 VARIABLE (grub_relocator32_forward_end)
 
 VARIABLE (grub_relocator32_backward_start)
@@ -51,4 +54,7 @@ copycont2:
        addiu $4, 0xffff
        subu $5,$4,$0
        bne $5, $0, copycont2
+#if __mips >= 2
+       sync
+#endif
 VARIABLE (grub_relocator32_backward_end)