Skip to content

Commit

Permalink
Refine VFP context for Coretex-A9 (FreeRTOS#1209)
Browse files Browse the repository at this point in the history
s0–s15 (d0–d7, q0–q3) and d16–d31 (q8–q15) are caller save
register

Signed-off-by: wangfei_chen <[email protected]>
Co-authored-by: wangfei_chen <[email protected]>
  • Loading branch information
Saiiijchan and wangfei_chen authored Dec 17, 2024
1 parent 3ddfffd commit e169442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portable/GCC/ARM_CA9/portASM.S
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ switch_before_exit:
vApplicationIRQHandler:
PUSH {LR}
FMRX R1, FPSCR
VPUSH {D0-D15}
VPUSH {D0-D7}
VPUSH {D16-D31}
PUSH {R1}

Expand All @@ -311,7 +311,7 @@ vApplicationIRQHandler:

POP {R0}
VPOP {D16-D31}
VPOP {D0-D15}
VPOP {D0-D7}
VMSR FPSCR, R0

POP {PC}
Expand Down

0 comments on commit e169442

Please sign in to comment.