소스 검색

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

huanghe 2 년 전
부모
커밋
9217865c6a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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 
 rt_asm_cpu_id:
-    mov r9, lr
     mrc p15, 0, r0, c0, c0, 5
     and r0, r0, #0xf
-    mov lr, r9
+    mov pc, lr
 
 stack_setup: