mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-19 08:33:45 +00:00
mips/cache: Add missing nop's in delay slots
Lack of them causes random instructions to be executed before the jump really happens. Signed-off-by: Vladimir Serbinenko <phcoder@google.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
c543d67810
commit
eb46ee98bc
@ -7,6 +7,7 @@
|
||||
FUNCTION (grub_arch_sync_caches)
|
||||
#include "cache_flush.S"
|
||||
j $ra
|
||||
nop
|
||||
|
||||
FUNCTION (grub_arch_sync_dma_caches)
|
||||
move $t2, $a0
|
||||
@ -66,3 +67,4 @@ FUNCTION (grub_arch_sync_dma_caches)
|
||||
sync_op
|
||||
|
||||
jr $ra
|
||||
nop
|
||||
|
Loading…
Reference in New Issue
Block a user