Selaa lähdekoodia

[libcpu] fix arm/cortex-a/start_gcc.S (#7515)

huanghe 1 vuosi sitten
vanhempi
commit
9217865c6a
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      libcpu/arm/cortex-a/start_gcc.S

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

@@ -210,10 +210,9 @@ _rtthread_startup:
 
 
 .weak rt_asm_cpu_id 
 .weak rt_asm_cpu_id 
 rt_asm_cpu_id:
 rt_asm_cpu_id:
-    mov r9, lr
     mrc p15, 0, r0, c0, c0, 5
     mrc p15, 0, r0, c0, c0, 5
     and r0, r0, #0xf
     and r0, r0, #0xf
-    mov lr, r9
+    mov pc, lr
 
 
 stack_setup:
 stack_setup: