Page 1 of 1

Multi-tasking related...

Posted: Tue Nov 04, 2003 12:00 am
by Neo
Hi,
  I was wondering how (or if it is possible) to find out from within an interrupt handler to get the last IP (instruction pointer) before the interrupt was called.  I'm hoping to implement some sort of pre-emptive multitasking using the system timer.
Thanks in advance!
-Neo

RE:Multi-tasking related...

Posted: Tue Nov 04, 2003 12:00 am
by mindvnas
cs:eip and eflags get saved on the interrupt handler's stack just as in real mode. not sure about the order, anyway. and you can get it to work, i did it exactly the same way :)