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

This commit is contained in:
huanghe 2023-05-19 11:32:58 +08:00 committed by GitHub
parent c105486bfc
commit 9217865c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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: