浏览代码

fix startup code address relative jump

bigmagic 4 年之前
父节点
当前提交
92ab0fd593
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 
 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