remove fpu stuff from cm3

This commit is contained in:
daishengdong
2020-07-01 20:37:57 +08:00
parent 4eb56ab12a
commit c3f372445f
3 changed files with 0 additions and 31 deletions

View File

@@ -106,7 +106,6 @@ PendSV_Handler:
SUBS R0, R0, #0x20
STM R0, {R4 - R11}
LDR R1, =k_curr_task
LDR R1, [R1]
STR R0, [R1]

View File

@@ -26,11 +26,5 @@
#define TOS_CFG_CPU_LEAD_ZEROS_ASM_PRESENT 1u
#define TOS_CFG_CPU_BYTE_ORDER CPU_BYTE_ORDER_LITTLE_ENDIAN
#ifndef __ARMVFP__
#define TOS_CFG_CPU_ARM_FPU_EN 0u
#else
#define TOS_CFG_CPU_ARM_FPU_EN 1u
#endif
#endif /* _PORT_CONFIG_H_ */

View File

@@ -88,11 +88,6 @@ port_sched_start
; restore r4-11 from new process stack
LDMFD SP!, {R4 - R11}
#if defined(__ARMVFP__)
; ignore EXC_RETURN the first switch
LDMFD SP!, {R0}
#endif
; restore r0, r3
LDMFD SP!, {R0 - R3}
; load R12 and LR
@@ -124,16 +119,6 @@ PendSV_Handler
_context_save
; R0-R3, R12, LR, PC, xPSR is saved automatically here
#if defined(__ARMVFP__)
; is it extended frame?
TST LR, #0x10
IT EQ
VSTMDBEQ R0!, {S16 - S31}
; S0 - S16, FPSCR saved automatically here
; save EXC_RETURN
STMFD R0!, {LR}
#endif
; save remaining regs r4-11 on process stack
STMFD R0!, {R4 - R11}
@@ -156,15 +141,6 @@ _context_restore
; restore R4 - R11
LDMFD R0!, {R4 - R11}
#if defined(__ARMVFP__)
; restore EXC_RETURN
LDMFD R0!, {LR}
; is it extended frame?
TST LR, #0x10
IT EQ
VLDMIAEQ R0!, {S16 - S31}
#endif
; Load PSP with new process SP
MSR PSP, R0
CPSIE I