Browse Source

fix startup code address relative jump

bigmagic 4 years ago
parent
commit
92ab0fd593
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libcpu/arm/cortex-a/start_gcc.S

+ 1 - 1
libcpu/arm/cortex-a/start_gcc.S

@@ -62,7 +62,7 @@ _reset:
     b continue
     b continue
 
 
 overHyped: /* Get out of HYP mode */
 overHyped: /* Get out of HYP mode */
-    ldr r1, =continue
+    adr r1, continue
     msr ELR_hyp, r1
     msr ELR_hyp, r1
     mrs r1, cpsr_all
     mrs r1, cpsr_all
     and r1, r1, #0x1f    ;@ CPSR_MODE_MASK
     and r1, r1, #0x1f    ;@ CPSR_MODE_MASK