]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/ppc_asm.tmpl
powerpc: use 'video-mode' environment variable to configure DIU
[karo-tx-uboot.git] / include / ppc_asm.tmpl
index fa5c5f66c1c257fae223ce5b871fbca4a022031b..2db4784d3b1181a05f54ab2a615ff9963e80768e 100644 (file)
@@ -35,7 +35,7 @@
  *
  * Stolen from prepboot/bootldr.h, (C) 1998 Gabriel Paubert, paubert@iram.es
  *
- * Uses r14 to access the GOT
+ * Uses r12 to access the GOT
  */
 
 #define START_GOT                      \
        .text   2               ;       \
 0:     .long   .LCTOC1-1f      ;       \
        .text                   ;       \
-1:     mflr    r14             ;       \
-       lwz     r0,0b-1b(r14)   ;       \
-       add     r14,r0,r14      ;
+1:     mflr    r12             ;       \
+       lwz     r0,0b-1b(r12)   ;       \
+       add     r12,r0,r12      ;
 
 #define GOT_ENTRY(NAME)                .L_ ## NAME = . - .LCTOC1 ; .long NAME
 
-#define GOT(NAME)              .L_ ## NAME (r14)
+#define GOT(NAME)              .L_ ## NAME (r12)
 
 
 /***************************************************************************