summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: