Nested Interrupts, enable state after context switch

Yes i wrote a port for the NIOS processor with vectored interrupt controller last year (LINK)…

There were some issues with it, and now i try to fix it… The first thing was the bad nested interrupt implementation :roll_eyes:

Now i think it works like expected… The IRQ state will be restored in every task. I think i also fixed the “portDisable” and “portEnable” Interrupts implementiation, by saving the last enable state (for every task) on the stack (while context is swtiched) und write this state to the ISR_ENABLE register, as soon “portEnable” will be called…
Nesting should also work because of the use of the “vTaskEnterCritical” and “vTaskExitCritical” implementation…

Thank you for your help!
Andy