diff options
| author | kurisaw <[email protected]> | 2025-06-23 09:44:41 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-06-24 11:04:01 +0800 |
| commit | 4f903298a276bd28a7e1b3c466ce67217823710f (patch) | |
| tree | 8d27db8fd75138b830126eb436c10dd7d32b7a9c /libcpu | |
| parent | 593ac8dbd699043ec40a27009fd50a556d954f79 (diff) | |
libcpu/bsp: fix the M33 assembly syntax errors and fix the compilation error of bsp
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/cortex-m33/context_rvds.S | 12 |
1 files 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 |
