aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/head.S15
-rw-r--r--include/asm-utils.h12
2 files changed, 12 insertions, 15 deletions
diff --git a/asm/head.S b/asm/head.S
index 1659c1b..29560c3 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -536,19 +536,6 @@ call_relocate:
1: /* Fatal relocate failure */
attn
-#define FIXUP_ENDIAN \
- tdi 0,0,0x48; /* Reverse endian of b . + 8 */ \
- b 191f; /* Skip trampoline if endian is good */ \
- .long 0xa600607d; /* mfmsr r11 */ \
- .long 0x01006b69; /* xori r11,r11,1 */ \
- .long 0x05009f42; /* bcl 20,31,$+4 */ \
- .long 0xa602487d; /* mflr r10 */ \
- .long 0x14004a39; /* addi r10,r10,20 */ \
- .long 0xa64b5a7d; /* mthsrr0 r10 */ \
- .long 0xa64b7b7d; /* mthsrr1 r11 */ \
- .long 0x2402004c; /* hrfid */ \
-191:
-
.global enable_machine_check
enable_machine_check:
mflr %r0
@@ -681,8 +668,6 @@ enter_p9_pm_state:
*/
.global reset_patch_start
reset_patch_start:
- FIXUP_ENDIAN
- smt_medium
LOAD_IMM64(%r30, SKIBOOT_BASE)
LOAD_IMM32(%r3, reset_wakeup - __head)
add %r3,%r30,%r3
diff --git a/include/asm-utils.h b/include/asm-utils.h
index 503f2cc..e94a143 100644
--- a/include/asm-utils.h
+++ b/include/asm-utils.h
@@ -41,5 +41,17 @@
/* Load an address via the TOC */
#define LOAD_ADDR_FROM_TOC(r, e) ld r,e@got(%r2)
+#define FIXUP_ENDIAN \
+ tdi 0,0,0x48; /* Reverse endian of b . + 8 */ \
+ b 191f; /* Skip trampoline if endian is good */ \
+ .long 0xa600607d; /* mfmsr r11 */ \
+ .long 0x01006b69; /* xori r11,r11,1 */ \
+ .long 0x05009f42; /* bcl 20,31,$+4 */ \
+ .long 0xa602487d; /* mflr r10 */ \
+ .long 0x14004a39; /* addi r10,r10,20 */ \
+ .long 0xa64b5a7d; /* mthsrr0 r10 */ \
+ .long 0xa64b7b7d; /* mthsrr1 r11 */ \
+ .long 0x2402004c; /* hrfid */ \
+191:
#endif /* __ASM_UTILS_H */