@@ -89,7 +89,7 @@ SVC_Context
89
89
IT EQ
90
90
BXEQ LR ; Exit when threads are the same
91
91
92
- IF FPU_USED = 1
92
+ IF __FPU_USED = 1
93
93
CBNZ R1 , SVC_ContextSave ; Branch if running thread is not deleted
94
94
TST LR , # 0x10 ; Check if extended stack frame
95
95
BNE SVC_ContextSwitch
@@ -114,7 +114,7 @@ SVC_ContextSave
114
114
SVC_ContextSave1
115
115
MRS R0 , PSP ; Get PSP
116
116
STMDB R0! , {R4 - R11 } ; Save R4..R11
117
- IF FPU_USED = 1
117
+ IF __FPU_USED = 1
118
118
TST LR , # 0x10 ; Check if extended stack frame
119
119
IT EQ
120
120
VSTMDBEQ R0! , {S16 - S31} ; Save VFP S16.S31
@@ -155,7 +155,7 @@ SVC_ContextRestore1
155
155
BNE SVC_ContextRestore2 ; Branch if secure
156
156
ENDIF
157
157
158
- IF FPU_USED = 1
158
+ IF __FPU_USED = 1
159
159
TST LR , # 0x10 ; Check if extended stack frame
160
160
IT EQ
161
161
VLDMIAEQ R0! , {S16 - S31} ; Restore VFP S16..S31
@@ -248,7 +248,7 @@ Sys_ContextSave1
248
248
Sys_ContextSave2
249
249
MRS R0 , PSP ; Get PSP
250
250
STMDB R0! , {R4 - R11 } ; Save R4..R11
251
- IF FPU_USED = 1
251
+ IF __FPU_USED = 1
252
252
TST LR , # 0x10 ; Check if extended stack frame
253
253
IT EQ
254
254
VSTMDBEQ R0! , {S16 - S31} ; Save VFP S16.S31
@@ -289,7 +289,7 @@ Sys_ContextRestore1
289
289
BNE Sys_ContextRestore2 ; Branch if secure
290
290
ENDIF
291
291
292
- IF FPU_USED = 1
292
+ IF __FPU_USED = 1
293
293
TST LR , # 0x10 ; Check if extended stack frame
294
294
IT EQ
295
295
VLDMIAEQ R0! , {S16 - S31} ; Restore VFP S16..S31
0 commit comments