Skip to content

Commit

Permalink
rtos: fix incorrect conflict resolution
Browse files Browse the repository at this point in the history
We used previously __FPU_USED so stay with it in M33 startup file.
  • Loading branch information
0xc0170 committed May 12, 2020
1 parent 864a943 commit 2fae95e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ SVC_Context
IT EQ
BXEQ LR ; Exit when threads are the same

IF FPU_USED = 1
IF __FPU_USED = 1
CBNZ R1,SVC_ContextSave ; Branch if running thread is not deleted
TST LR,#0x10 ; Check if extended stack frame
BNE SVC_ContextSwitch
Expand All @@ -114,7 +114,7 @@ SVC_ContextSave
SVC_ContextSave1
MRS R0,PSP ; Get PSP
STMDB R0!,{R4-R11} ; Save R4..R11
IF FPU_USED = 1
IF __FPU_USED = 1
TST LR,#0x10 ; Check if extended stack frame
IT EQ
VSTMDBEQ R0!,{S16-S31} ; Save VFP S16.S31
Expand Down Expand Up @@ -155,7 +155,7 @@ SVC_ContextRestore1
BNE SVC_ContextRestore2 ; Branch if secure
ENDIF

IF FPU_USED = 1
IF __FPU_USED = 1
TST LR,#0x10 ; Check if extended stack frame
IT EQ
VLDMIAEQ R0!,{S16-S31} ; Restore VFP S16..S31
Expand Down Expand Up @@ -248,7 +248,7 @@ Sys_ContextSave1
Sys_ContextSave2
MRS R0,PSP ; Get PSP
STMDB R0!,{R4-R11} ; Save R4..R11
IF FPU_USED = 1
IF __FPU_USED = 1
TST LR,#0x10 ; Check if extended stack frame
IT EQ
VSTMDBEQ R0!,{S16-S31} ; Save VFP S16.S31
Expand Down Expand Up @@ -289,7 +289,7 @@ Sys_ContextRestore1
BNE Sys_ContextRestore2 ; Branch if secure
ENDIF

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

0 comments on commit 2fae95e

Please sign in to comment.