[Geekos-devel] Project 3 scheduling question
Status: Pre-Alpha
Brought to you by:
daveho
From: <wm...@ao...> - 2008-08-02 09:37:48
|
This is from lowlevel.asm at Switch_To_Thread: .. ??? ; Load the pointer to the new thread context into eax. ??? ; We skip over the Interrupt_State struct on the stack to ??? ; get the parameter. ??? mov??? eax, [esp+INTERRUPT_STATE_SIZE] .. Why do we have to skip over the Interrupt_State struct on the stack? Switch_To_Thread seems only to be called for new threads. I don't see any place where the interrupt occurs to put info on the stack.? Am I missing something here? |