summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuanghe <[email protected]>2023-05-19 11:32:58 +0800
committerGitHub <[email protected]>2023-05-19 11:32:58 +0800
commit9217865c6a40847f934ee87b0eaa1d72ad9e20fa (patch)
treee4a85f42017b718bf81df2d2fd37e6082088cf21
parentc105486bfcd152d39cedb42e7152a38131da2dcb (diff)
[libcpu] fix arm/cortex-a/start_gcc.S (#7515)
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index d79ffd2f6a..8bc4be8a2e 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/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: