我用uCOS III v3.0.8的,默认是不需要移植
下面是官方自带的GCC移植文件:os_cpu_a.S
OS_CPU_PendSVHandler:
CPSID I @ Cortex-M7 errata notice. See Note #5
MOVW R2, #:lower16:OS_KA_BASEPRI_Boundary @ Set BASEPRI priority level required for exception preemption
MOVT R2, #:upper16:OS_KA_BASEPRI_Boundary
LDR R1, [R2]
MSR BASEPRI, R1
DSB
ISB
CPSIE I
MRS R0, PSP @ PSP is process stack pointer
#if (defined(__VFP_FP__) && !defined(__SOFTFP__))
@ Push high vfp registers if the task is using the FPU context
TST R14, #0x10
IT EQ
VSTMDBEQ R0!, {S16-S31}
#endif