Re:Data segments
Posted: Mon Aug 09, 2004 1:03 pm
This is already taken care of for you.
When an IRQ fires an interrupt is called.
Any time an interrupt is called the current value of eflags, cs and eip are pushed onto the stack. When you're finished with whatever the interrupt does you perform an iret which pops values for those registers back off the stack.
This is bog-standard x86 architecture stuff. If you aren't familiar with it then I suggest re-reading the Intel manuals before continuing much farther.
When an IRQ fires an interrupt is called.
Any time an interrupt is called the current value of eflags, cs and eip are pushed onto the stack. When you're finished with whatever the interrupt does you perform an iret which pops values for those registers back off the stack.
This is bog-standard x86 architecture stuff. If you aren't familiar with it then I suggest re-reading the Intel manuals before continuing much farther.