Skip to content

Commit 39cf561

Browse files
committed
Revert removal of configFPU_D32
1 parent 3560308 commit 39cf561

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

portable/GCC/ARM_CRx_No_GIC/port.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
/* The space on the stack required to hold the FPU registers. */
85-
#define portFPU_REGISTER_WORDS ( ( 16 * 2 ) + 1 ) /* D0-D15 and FPSCR. */
85+
#if ( configFPU_D32 == 1 )
86+
#define portFPU_REGISTER_WORDS ( ( 32 * 2 ) + 1 ) /* D0-D31 and FPSCR. */
87+
#else
88+
#define portFPU_REGISTER_WORDS ( ( 16 * 2 ) + 1 ) /* D0-D15 and FPSCR. */
89+
#endif /* configFPU_D32 */
8690

8791
/*-----------------------------------------------------------*/
8892

portable/GCC/ARM_CRx_No_GIC/portASM.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
/* Save the floating point context, if any. */
8181
VMRSNE R1, FPSCR
8282
VPUSHNE {D0-D15}
83+
#if configFPU_D32 == 1
84+
VPUSHNE {D16-D31}
85+
#endif /* configFPU_D32 */
8386
PUSHNE {R1}
8487

8588
/* Save ulPortTaskHasFPUContext itself. */

portable/GCC/ARM_CRx_No_GIC/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ UBaseType_t ulPortCountLeadingZeros( UBaseType_t ulBitmap );
150150
void vPortTaskUsesFPU( void );
151151
#else
152152
/* Each task has an FPU context already, so define this function as a
153-
*no-op. */
153+
* no-op. */
154154
#define vPortTaskUsesFPU()
155155
#endif
156156
#define portTASK_USES_FLOATING_POINT() vPortTaskUsesFPU()

0 commit comments

Comments
 (0)