summaryrefslogtreecommitdiff
path: root/src/arch/ppc64/bootblock_crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/ppc64/bootblock_crt0.S')
-rw-r--r--src/arch/ppc64/bootblock_crt0.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/ppc64/bootblock_crt0.S b/src/arch/ppc64/bootblock_crt0.S
index 3988583bee..5a9496024e 100644
--- a/src/arch/ppc64/bootblock_crt0.S
+++ b/src/arch/ppc64/bootblock_crt0.S
@@ -3,6 +3,8 @@
* Early initialization code for POWER8/POWER9.
*/
+#include <cpu/power/spr.h>
+
#define FIXUP_ENDIAN \
tdi 0,0,0x48; /* Reverse endian of b . + 8 */ \
b $+44; /* Skip trampoline if endian is good */ \
@@ -35,6 +37,10 @@ _start:
nop
FIXUP_ENDIAN
+ /* Store FDT address provided by QEMU in %r3 to pass it later to
+ * payload */
+ mtspr SPR_HSPRG0, %r3
+
/* Set program priority to medium */
or %r2, %r2, %r2