diff --git a/portable/GCC/ARM_CR5/port.c b/portable/GCC/ARM_CR5/port.c index 066b15a85ff..703ad0c25f9 100644 --- a/portable/GCC/ARM_CR5/port.c +++ b/portable/GCC/ARM_CR5/port.c @@ -206,7 +206,7 @@ static void prvTaskExitError( void ); * FPU registers to be saved on interrupt entry their IRQ handler must be * called vApplicationIRQHandler(). */ -void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR ) __attribute__((weak) ); +void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR ) __attribute__( ( weak ) ); /*-----------------------------------------------------------*/ @@ -297,24 +297,24 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack, *pxTopOfStack = ( StackType_t ) 0x01010101; /* R1 */ pxTopOfStack--; *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ - pxTopOfStack--; /* The task will start with a critical nesting count of 0 as interrupts are * enabled. */ + pxTopOfStack--; *pxTopOfStack = portNO_CRITICAL_NESTING; #if( configUSE_TASK_FPU_SUPPORT == 1 ) { - /* The task will start without a floating point context. A task that - uses the floating point hardware must call vPortTaskUsesFPU() before - executing any floating point instructions. */ + /* The task will start without a floating point context. A task that + * uses the floating point hardware must call vPortTaskUsesFPU() before + * executing any floating point instructions. */ pxTopOfStack--; *pxTopOfStack = portNO_FLOATING_POINT_CONTEXT; } #elif( configUSE_TASK_FPU_SUPPORT == 2 ) { - /* The task will start with a floating point context. Leave enough - space for the registers - and ensure they are initialized to 0. */ + /* The task will start with a floating point context. Leave enough + * space for the registers - and ensure they are initialized to 0. */ pxTopOfStack -= portFPU_REGISTER_WORDS; memset( pxTopOfStack, 0x00, portFPU_REGISTER_WORDS * sizeof( StackType_t ) ); diff --git a/portable/GCC/ARM_CR5/portASM.S b/portable/GCC/ARM_CR5/portASM.S index 77805a26a42..5a090135ed6 100644 --- a/portable/GCC/ARM_CR5/portASM.S +++ b/portable/GCC/ARM_CR5/portASM.S @@ -74,7 +74,6 @@ /* Save the floating point context, if any. */ FMRXNE R1, FPSCR VPUSHNE {D0-D15} - /*VPUSHNE {D16-D31}*/ PUSHNE {R1} /* Save ulPortTaskHasFPUContext itself. */ @@ -107,7 +106,6 @@ /* Restore the floating point context, if any. */ POPNE {R0} - /*VPOPNE {D16-D31}*/ VPOPNE {D0-D15} VMSRNE FPSCR, R0 #endif /* __ARM_FP */