From 1c9823e8f945ca7acbffd981f6eab540d6d70811 Mon Sep 17 00:00:00 2001 From: zhuangwei Date: Fri, 7 Jun 2024 14:29:13 +0800 Subject: [PATCH] [libcpu][cortex-m33]Fix compilation errors --- libcpu/arm/cortex-m33/context_rvds.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libcpu/arm/cortex-m33/context_rvds.S b/libcpu/arm/cortex-m33/context_rvds.S index 41ff62c78c..5b527b537c 100644 --- a/libcpu/arm/cortex-m33/context_rvds.S +++ b/libcpu/arm/cortex-m33/context_rvds.S @@ -146,10 +146,10 @@ contex_ns_store MRS r1, psp ; get from thread stack pointer -#if defined (__VFP_FP__) && !defined(__SOFTFP__) + IF {FPU} != "SoftVFP" TST lr, #0x10 ; if(!EXC_RETURN[4]) VSTMFDEQ r1!, {d8 - d15} ; push FPU register s16~s31 -#endif + ENDIF STMFD r1!, {r4 - r11} ; push r4 - r11 register @@ -190,10 +190,10 @@ switch_to_thread contex_ns_load LDMFD r1!, {r4 - r11} ; pop r4 - r11 register -#if defined (__VFP_FP__) && !defined(__SOFTFP__) + IF {FPU} != "SoftVFP" TST lr, #0x10 ; if(!EXC_RETURN[4]) VLDMFDEQ r1!, {d8 - d15} ; pop FPU register s16~s31 -#endif + ENDIF pendsv_exit MSR psp, r1 ; update stack pointer @@ -215,12 +215,12 @@ rt_hw_context_switch_to PROC LDR r1, =rt_interrupt_to_thread STR r0, [r1] -#if defined (__VFP_FP__) && !defined(__SOFTFP__) + IF {FPU} != "SoftVFP" ; CLEAR CONTROL.FPCA MRS r2, CONTROL ; read BIC r2, #0x04 ; modify MSR CONTROL, r2 ; write-back -#endif + ENDIF ; set from thread to 0 LDR r1, =rt_interrupt_from_thread -- Gitee