File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
portable/GCC/ARM_CRx_No_GIC Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void vPortTaskUsesFPU( void )
319
319
ulPortTaskHasFPUContext = pdTRUE ;
320
320
321
321
/* Initialise the floating point status register. */
322
- vSetupFPU ();
322
+ vPortInitialiseFPSCR ();
323
323
/*__asm volatile ( "FMXR FPSCR, %0" ::"r" ( ulInitialFPSCR ) : "memory" );*/
324
324
}
325
325
/*-----------------------------------------------------------*/
Original file line number Diff line number Diff line change 47
47
. global FreeRTOS_IRQ_Handler
48
48
. global FreeRTOS_SVC_Handler
49
49
. global vPortRestoreTaskContext
50
+ . global vPortInitialiseFPSCR
50
51
51
52
52
53
.macro portSAVE_CONTEXT
@@ -149,15 +150,17 @@ vPortRestoreTaskContext:
149
150
/ * Switch to system mode. * /
150
151
CPS #SYS_MODE
151
152
portRESTORE_CONTEXT
152
-
153
+
154
+
155
+ / ******************************************************************************
156
+ * vPortInitialiseFPSCR is used to initialize the FPSCR context.
157
+ ***************************************************************************** /
153
158
. align 4
154
- .type vSetupFPU , %function
155
- vSetupFPU:
156
- PUSH { R0 }
157
- MOV R0 , # 0x0
158
- FMXR FPSCR , R0
159
- POP { R0 }
160
- BX LR
159
+ .type vPortInitialiseFPSCR , %function
160
+ vPortInitialiseFPSCR:
161
+ MOV R0 , # 0
162
+ FMXR FPSCR , R0
163
+ BX LR
161
164
162
165
. align 4
163
166
.type FreeRTOS_IRQ_Handler , %function
You can’t perform that action at this time.
0 commit comments