Skip to content

Commit 2fae95e

Browse files
committed
rtos: fix incorrect conflict resolution
We used previously __FPU_USED so stay with it in M33 startup file.
1 parent 864a943 commit 2fae95e

File tree

1 file changed

+5
-5
lines changed
  • rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M33

1 file changed

+5
-5
lines changed

rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M33/irq_armv8mml.S

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ SVC_Context
8989
IT EQ
9090
BXEQ LR ; Exit when threads are the same
9191

92-
IF FPU_USED = 1
92+
IF __FPU_USED = 1
9393
CBNZ R1,SVC_ContextSave ; Branch if running thread is not deleted
9494
TST LR,#0x10 ; Check if extended stack frame
9595
BNE SVC_ContextSwitch
@@ -114,7 +114,7 @@ SVC_ContextSave
114114
SVC_ContextSave1
115115
MRS R0,PSP ; Get PSP
116116
STMDB R0!,{R4-R11} ; Save R4..R11
117-
IF FPU_USED = 1
117+
IF __FPU_USED = 1
118118
TST LR,#0x10 ; Check if extended stack frame
119119
IT EQ
120120
VSTMDBEQ R0!,{S16-S31} ; Save VFP S16.S31
@@ -155,7 +155,7 @@ SVC_ContextRestore1
155155
BNE SVC_ContextRestore2 ; Branch if secure
156156
ENDIF
157157

158-
IF FPU_USED = 1
158+
IF __FPU_USED = 1
159159
TST LR,#0x10 ; Check if extended stack frame
160160
IT EQ
161161
VLDMIAEQ R0!,{S16-S31} ; Restore VFP S16..S31
@@ -248,7 +248,7 @@ Sys_ContextSave1
248248
Sys_ContextSave2
249249
MRS R0,PSP ; Get PSP
250250
STMDB R0!,{R4-R11} ; Save R4..R11
251-
IF FPU_USED = 1
251+
IF __FPU_USED = 1
252252
TST LR,#0x10 ; Check if extended stack frame
253253
IT EQ
254254
VSTMDBEQ R0!,{S16-S31} ; Save VFP S16.S31
@@ -289,7 +289,7 @@ Sys_ContextRestore1
289289
BNE Sys_ContextRestore2 ; Branch if secure
290290
ENDIF
291291

292-
IF FPU_USED = 1
292+
IF __FPU_USED = 1
293293
TST LR,#0x10 ; Check if extended stack frame
294294
IT EQ
295295
VLDMIAEQ R0!,{S16-S31} ; Restore VFP S16..S31

0 commit comments

Comments
 (0)