Re: Mach context switch
Vasily Sartakov, le Sun 06 Dec 2009 19:38:28 +0300, a écrit :
> 7* thread_block ---- thread_select --- thread_invoke --- magic thing with
> thread status ---- switch_context.
> switch_context is a very strange case, this process in mach i
> misunderstend.usually, switch context needs changing processor state, for
> getting registers from other context for save it (interrupt or exception), but
> i didn't see this metod in x86 source.
Just continue following the calls: switch_context calls Switch_context
(in i386/i386/cswitch.S) which does save/restore.