void vPortTaskUsesFPU( void ) { extern void vPortInitialiseFPSCR( void ); /* A task is registering the fact that it needs an FPU context. Set the FPU flag (saved as part of the task context. */ ulTaskHasFPUContext = pdTRUE; /* Initialise the floating point status register. */ vPortInitialiseFPSCR(); }
void vPortTaskUsesFPU(void) { extern void vPortInitialiseFPSCR( uint32_t uxFPSCRInit ); portENTER_CRITICAL(); /* Initialise the floating point status register. */ vPortInitialiseFPSCR(portINITIAL_FPSCR); /* A task is registering the fact that it needs a FPU context. Set the FPU flag (saved as part of the task context). */ ulTaskHasFPUContext = pdTRUE; portEXIT_CRITICAL(); }