summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-a
diff options
context:
space:
mode:
authorlepus <[email protected]>2023-07-14 23:12:04 +0800
committerGitHub <[email protected]>2023-07-14 23:12:04 +0800
commit2741bec8f714564bf5c394febb140484371ac275 (patch)
tree3cb82fc9d6194100c8312ebaaa9dedc3f884b34d /libcpu/arm/cortex-a
parent0ebec472e16cc88d5ed5453d99059af0031998d1 (diff)
[libcpu][cortex-a]modified start_gcc.S (#7810)
Diffstat (limited to 'libcpu/arm/cortex-a')
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index 1ed0d6166b..6ff40b1b31 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/libcpu/arm/cortex-a/start_gcc.S
@@ -549,8 +549,8 @@ rt_hw_context_switch_interrupt_do:
ldr r6, [r6]
ldr sp, [r6] /* get new task's stack pointer */
- bl rt_thread_self
#ifdef RT_USING_SMART
+ bl rt_thread_self
mov r4, r0
bl lwp_aspace_switch
mov r0, r4
@@ -622,8 +622,8 @@ vector_swi:
vector_undef:
push_svc_reg
bl rt_hw_trap_undef
- cps #Mode_UND
#ifdef RT_USING_FPU
+ cps #Mode_UND
sub sp, sp, #17 * 4
ldr lr, [sp, #15*4]
ldmia sp, {r0 - r12}