Make mips/relocator_asm.S more readable

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-05 21:02:24 +01:00
parent 6e308bd942
commit 473fc1a062

View file

@ -27,9 +27,9 @@ VARIABLE (grub_relocator_forward_start)
copycont1:
lb $11,0($8)
sb $11,0($9)
addiu $8, $8, 0x1
addiu $9, $9, 0x1
addiu $10, $10, 0xffff
addiu $8, $8, 1
addiu $9, $9, 1
addiu $10, $10, -1
bne $10, $0, copycont1
#include "../../kern/mips/cache_flush.S"
@ -43,14 +43,14 @@ VARIABLE (grub_relocator_backward_start)
addu $9, $9, $10
addu $8, $8, $10
/* Backward movsl is implicitly off-by-one. compensate that. */
addiu $9, $9, 0xffff
addiu $8, $8, 0xffff
addiu $9, $9, -1
addiu $8, $8, -1
copycont2:
lb $11,0($8)
sb $11,0($9)
addiu $8, $8, 0xffff
addiu $9, $9, 0xffff
addiu $10, 0xffff
addiu $8, $8, -1
addiu $9, $9, -1
addiu $10, $10, -1
bne $10, $0, copycont2
#include "../../kern/mips/cache_flush.S"