summaryrefslogtreecommitdiff
path: root/libcpu/arm
diff options
context:
space:
mode:
authorbigmagic <[email protected]>2020-06-04 00:03:07 +0800
committerbigmagic <[email protected]>2020-06-04 00:03:07 +0800
commit92ab0fd59347d2f484e33c34802f88b4d4d71b80 (patch)
tree1d8de90c26dbf6fc8f980ed1159c1dbe7782b425 /libcpu/arm
parent587e50dc1cfa87ec9e972055ef396cf0cdbd60b3 (diff)
fix startup code address relative jump
Diffstat (limited to 'libcpu/arm')
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index a8f3a36630..2e99db7218 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/libcpu/arm/cortex-a/start_gcc.S
@@ -62,7 +62,7 @@ _reset:
b continue
overHyped: /* Get out of HYP mode */
- ldr r1, =continue
+ adr r1, continue
msr ELR_hyp, r1
mrs r1, cpsr_all
and r1, r1, #0x1f ;@ CPSR_MODE_MASK