This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Alternate mechanism for handling FPU interrupts

Part Number: TMS570LC4357

Hi,

We are facing an issue, when FPU interrupt is triggered i.e., once when FPU interrupt is triggered, we are observing that, the ISR is getting executed continuously and it never returns back to the original flow. We have an asm handler, which  does the following ::

1.save the current states of the registers and the program

2.Store/save floating point registers

3. Execute the IRQ callback function

4. Re-store floating point registers

5. state restore of the current program

6. return

-> Looks like, in step-4, when we are restoring the fpu registers, the values of the FPU registers are the same as the step 2 register values and hence the interrupt is still in active state and hence we are observing that the FPU interrupt retriggers again and enters the ISR.

Is there any better mechanism to handle the FPU interrutps or can you please provide any pseudo code for the same to handle the FPU interrupts effectively.

Regards,

Bharath