Multi-tasking related...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Multi-tasking related...

Post 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
Only Human
mindvnas

RE:Multi-tasking related...

Post 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 :)
Post Reply