First update of vPortTaskUsesFPU API

This commit is contained in:
kar-rahul-aws 2024-07-08 14:42:46 +05:30
parent 0452603a94
commit d37b605632
2 changed files with 13 additions and 3 deletions

View file

@ -312,13 +312,14 @@ void FreeRTOS_Tick_Handler( void )
void vPortTaskUsesFPU( void )
{
uint32_t ulInitialFPSCR = 0;
//uint32_t ulInitialFPSCR = 0;
/* A task is registering the fact that it needs an FPU context. Set the
* FPU flag (which is saved as part of the task context). */
ulPortTaskHasFPUContext = pdTRUE;
/* Initialise the floating point status register. */
__asm volatile ( "FMXR FPSCR, %0" ::"r" ( ulInitialFPSCR ) : "memory" );
vSetupFPU();
/*__asm volatile ( "FMXR FPSCR, %0" ::"r" ( ulInitialFPSCR ) : "memory" );*/
}
/*-----------------------------------------------------------*/
/*-----------------------------------------------------------*/