Skip to content

Commit

Permalink
RTX5: Avoid warnings caused by -Wundef.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuentherMartin committed Feb 25, 2021
1 parent ccbe8bd commit 7114cc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ osRtxContextSave:
STMDB R1!, {R2,R12} // Push FPSCR, maintain 8-byte alignment

VSTMDB R1!, {D0-D15} // Save D0-D15
#if __ARM_NEON == 1
#if defined(__ARM_NEON) && (__ARM_NEON == 1)
VSTMDB R1!, {D16-D31} // Save D16-D31
#endif

LDRB R2, [LR, #TCB_SP_FRAME] // Load osRtxInfo.thread.run.curr frame info
#if __ARM_NEON == 1
#if defined(__ARM_NEON) && (__ARM_NEON == 1)
ORR R2, R2, #4 // NEON state
#else
ORR R2, R2, #2 // VFP state
Expand Down Expand Up @@ -433,7 +433,7 @@ osRtxContextRestore:
MCR p15, 0, R2, c1, c0, 2 // Write CPACR
BEQ osRtxContextRestore1 // No VFP
ISB // Sync if VFP was enabled
#if __ARM_NEON == 1
#if defined(__ARM_NEON) && (__ARM_NEON == 1)
VLDMIA LR!, {D16-D31} // Restore D16-D31
#endif
VLDMIA LR!, {D0-D15} // Restore D0-D15
Expand Down

0 comments on commit 7114cc6

Please sign in to comment.