Skip to content

Commit f835e6e

Browse files
ChristosZosipaulbartell
authored andcommitted
Make minor formating changes
1 parent 80e904b commit f835e6e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

portable/GCC/ARM_CR5/port.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void prvTaskExitError( void );
206206
* FPU registers to be saved on interrupt entry their IRQ handler must be
207207
* called vApplicationIRQHandler().
208208
*/
209-
void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR ) __attribute__((weak) );
209+
void vApplicationFPUSafeIRQHandler( uint32_t ulICCIAR ) __attribute__( ( weak ) );
210210

211211
/*-----------------------------------------------------------*/
212212

@@ -297,24 +297,24 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
297297
*pxTopOfStack = ( StackType_t ) 0x01010101; /* R1 */
298298
pxTopOfStack--;
299299
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
300-
pxTopOfStack--;
301300

302301
/* The task will start with a critical nesting count of 0 as interrupts are
303302
* enabled. */
303+
pxTopOfStack--;
304304
*pxTopOfStack = portNO_CRITICAL_NESTING;
305305

306306
#if( configUSE_TASK_FPU_SUPPORT == 1 )
307307
{
308-
/* The task will start without a floating point context. A task that
309-
uses the floating point hardware must call vPortTaskUsesFPU() before
310-
executing any floating point instructions. */
308+
/* The task will start without a floating point context. A task that
309+
* uses the floating point hardware must call vPortTaskUsesFPU() before
310+
* executing any floating point instructions. */
311311
pxTopOfStack--;
312312
*pxTopOfStack = portNO_FLOATING_POINT_CONTEXT;
313313
}
314314
#elif( configUSE_TASK_FPU_SUPPORT == 2 )
315315
{
316-
/* The task will start with a floating point context. Leave enough
317-
space for the registers - and ensure they are initialized to 0. */
316+
/* The task will start with a floating point context. Leave enough
317+
* space for the registers - and ensure they are initialized to 0. */
318318
pxTopOfStack -= portFPU_REGISTER_WORDS;
319319
memset( pxTopOfStack, 0x00, portFPU_REGISTER_WORDS * sizeof( StackType_t ) );
320320

portable/GCC/ARM_CR5/portASM.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
/* Save the floating point context, if any. */
7575
FMRXNE R1, FPSCR
7676
VPUSHNE {D0-D15}
77-
/*VPUSHNE {D16-D31}*/
7877
PUSHNE {R1}
7978

8079
/* Save ulPortTaskHasFPUContext itself. */
@@ -107,7 +106,6 @@
107106

108107
/* Restore the floating point context, if any. */
109108
POPNE {R0}
110-
/*VPOPNE {D16-D31}*/
111109
VPOPNE {D0-D15}
112110
VMSRNE FPSCR, R0
113111
#endif /* __ARM_FP */

0 commit comments

Comments
 (0)