]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 13 Feb 2010 15:23:20 +0000 (16:23 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 13 Feb 2010 15:23:20 +0000 (16:23 +0100)
* kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.

ChangeLog
kern/sparc64/ieee1275/crt0.S

index 6690f7f8165c10efd07c0a022e4c831c3434d871..47da5ccf22238250df83b5878196b3def971b6bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
+
 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
index 4e67cbc1973bc429d3f27e437428260eb5c2644a..3749f3005eb775225346573fe31e2eda0cb66f98 100644 (file)
@@ -53,12 +53,16 @@ codestart:
        or      %o3, %lo(_end), %o3
        sethi   %hi(grub_total_module_size), %o4
        lduw    [%o4 + %lo(grub_total_module_size)], %o4
+       add     %o2, %o4, %o2
+       add     %o3, %o4, %o3
+       sub     %o2, 4, %o2
+       sub     %o3, 4, %o3
 1:     lduw    [%o2], %o5
        stw     %o5, [%o3]
        subcc   %o4, 4, %o4
-       add     %o2, 4, %o2
+       sub     %o2, 4, %o2
        bne,pt  %icc, 1b
-        add    %o3, 4, %o3
+         sub   %o3, 4, %o3
 
        /* Now it's safe to clear out the BSS.  */
        sethi   %hi(__bss_start), %o2