i386 registers during a syscall

Julian Elischer julian at elischer.org
Mon Jul 24 04:24:41 UTC 2006


Divacky Roman wrote:

>hi,
>
>I need to get content of %esi register as it was during a syscall. Should I get
>this info from td->td_pcb->pcb_esi or td->td_frame->tf_esi?
>
>Is it so that trapframe is "content of registers when entering a kernel" and
>pcb is "when leaving a kernel" ?
>  
>

pcb is when the process is sleeping or otherwise suspended.
frame is when enterring the kernel, and reloaded when leaving the kernel

>thnx for info
>
>roman
>
>
>----------------------
>www.liberalnistrana.cz
>_______________________________________________
>freebsd-hackers at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>  
>


More information about the freebsd-hackers mailing list