I'm rewriting my scheduler. I've forgotten if I'm right about this or not. Suppose there are two DPL0 tasks running at the given moment. When IRQ0 is fired, are these the registers that are pushed onto the stack?
1) EFLAGS
2) CS
3) EIP
And for DPL3 to DPL0:
1) SS
2) ESP
3) EFLAGS
4) CS
5) EIP
Could somebody please confirm or correct this?
Scheduling and DPL0 stack
Scheduling and DPL0 stack
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
better section would be: 3A:5.12.1 (and figure 5-4 in same section)JamesM wrote:yes, but I'm not certain about the order. Check the intel manuals. (volume 2.1: instruction 'INT')
this section does a better and simpler job of explaining exactly how the stack is used in these situations... from an OSdevers POV