Thanks for reply.
Actually i want to save cpu registers values just before the time of
shutdown that is why i am asking question.So is it possible for me to do
that?and if possible how should approach for it?
Thanks in advance.



On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > I want to access cpu registers
> I don't know if this helps.
>
> [...]
> #include <ucontext.h>
> [...]
> ucontext_t ctx;
> getcontext(&ctx);
> printf("%#010x\n", ctx.uc_mcontext.mc_eax);
> [...]
>
> Look at /usr/include/ucontext.h
>
> greets
>
> Andreas
>
>
>
>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to