diff options
| author | 杨熙 <[email protected]> | 2024-02-16 00:30:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-16 00:30:50 +0800 |
| commit | 41e08084f85646512b1529c8ac4c3201fba63833 (patch) | |
| tree | e479ac0237e719ccc393c8a141eaf5cd747ba499 /libcpu/arm | |
| parent | 35eea4bc461133d431d457328f1cf987ebc2f787 (diff) | |
Bsp nxp support (#8530)
Co-authored-by: StackYuan <[email protected]>
Diffstat (limited to 'libcpu/arm')
| -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 5b527b537c..41ff62c78c 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 {FPU} != "SoftVFP" +#if defined (__VFP_FP__) && !defined(__SOFTFP__) 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 {FPU} != "SoftVFP" +#if defined (__VFP_FP__) && !defined(__SOFTFP__) 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 {FPU} != "SoftVFP" +#if defined (__VFP_FP__) && !defined(__SOFTFP__) ; 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 |
