]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Make mips/relocator_asm.S more readable
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 5 Feb 2010 20:02:24 +0000 (21:02 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 5 Feb 2010 20:02:24 +0000 (21:02 +0100)
lib/mips/relocator_asm.S

index 8ffab99b743d92a15f2fca8974e5a86d53863519..3408b59e100e90a10255eb6d192a38a0069f8a70 100644 (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"