DSPRelated.com
Forums

C interrupt handler occurs when alternate registers is active

Started by y.co...@innovason.com September 21, 2007
I want to know how can I do to make a C interrupt handler ( which uses primary registers ) interrupt correctly an assembly routine ( which uses alternate registers ).

I've the following problem :
Functions "Interrupt handler" ( interrupt(), interrupts() .. ) offered by visualDSP don't swap into primary register. Then , when an assembly is interrupted, the interrupt handler save the context with the active alternate registers ( i6 frame pointer and I7 stack pointer are wrong ).

Should I do my own interrupt handler ?

Does anybody have an idea ?

Thank you.