How to set specific stack uping IRQ
Posted: Thu Apr 02, 2015 4:26 am
Hi,
I have a question regarding the stack upon IRQ.
What I understand is that if I am in user mode and an IRQ occurs the first thing that happens is that the processor will switch to the stack pointer address stored in my TSS(RSP0), which in this case should be set to the kernel stack pointer by me prior to switching to user mode. So I guess that the change in DPL forces this symptom to occur.
My question is , If I am not in user mode (kernel mode) is there a way that I can force the processor to do the same thing and switch to stack pointer address stored in the TSS
Thanks
Karim.
I have a question regarding the stack upon IRQ.
What I understand is that if I am in user mode and an IRQ occurs the first thing that happens is that the processor will switch to the stack pointer address stored in my TSS(RSP0), which in this case should be set to the kernel stack pointer by me prior to switching to user mode. So I guess that the change in DPL forces this symptom to occur.
My question is , If I am not in user mode (kernel mode) is there a way that I can force the processor to do the same thing and switch to stack pointer address stored in the TSS
Thanks
Karim.