Hi,
if I am using FP calculations in FIQ and IRQ and the FIQ interrupts the IRQ, I get wrong comparisons.
Say I have the following instructions in IRQ:
VCMPE.F32 s16,s17 VMRS APSR_nzcv,FPSCR
Do I only have to save the registers s0-s31 or do I have to save the register FPSCR, too?
I would use this code to get around my problem:
;start of FIQ routine
VPUSH {s0-s15}
VPUSH {s16-s31}
;FP calculations in FIQ
VPOP {s16-s31}
VPOP {s0-s15}
;end of FIQ routine
Will this work?
Thanks!