From 9217865c6a40847f934ee87b0eaa1d72ad9e20fa Mon Sep 17 00:00:00 2001 From: huanghe <31907499+ssd4561@users.noreply.github.com> Date: Fri, 19 May 2023 11:32:58 +0800 Subject: [PATCH] [libcpu] fix arm/cortex-a/start_gcc.S (#7515) --- libcpu/arm/cortex-a/start_gcc.S | 3 +-- 1 file changed, 1 insertion(+), 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: