#58072 - AkumaATR - Thu Oct 20, 2005 5:12 pm
1. Is it very often that people need to switch to user mode stack when dealing with nested interrupts via Jeff F.'s approach? I was going to use the interrupt dispatcher from his crt0.o until I started worrying about blowing the IRQ mode stack.
2. I decided to at this point use Wintermute's interrupt dispatcher, as I don't think I have any interrupt processing that is important enough that it can't wait for a current interrupt handler to finish. However, I have REG_IE set so that only interrupts occur on timer 1 overflow, yet it seems that I have to have my handler at index [0] in IntrTable. I read that the function pointers for each associated interrupt should be in the same order as the bits in REG_IF. Wouldn't that mean I should be able to have all entries in IntrTable as NULL except for IntrTable[4]? Like I said, at this point in time it only seems to work for me if I have my handler at IntrTable[0].
Any tips/ideas as to what's going on?
Thanks so much.
2. I decided to at this point use Wintermute's interrupt dispatcher, as I don't think I have any interrupt processing that is important enough that it can't wait for a current interrupt handler to finish. However, I have REG_IE set so that only interrupts occur on timer 1 overflow, yet it seems that I have to have my handler at index [0] in IntrTable. I read that the function pointers for each associated interrupt should be in the same order as the bits in REG_IF. Wouldn't that mean I should be able to have all entries in IntrTable as NULL except for IntrTable[4]? Like I said, at this point in time it only seems to work for me if I have my handler at IntrTable[0].
Any tips/ideas as to what's going on?
Thanks so much.