Hi
I want to access cpu registers using KLD.How should i do that?
My aim is to save current registers values on disk.
Any documentation or code regrading this will also help me.
Thanks in advance.
-Pranav Sawargaonkar
_
On 2006-02-23 15:18, Pranav Sawargaonkar <[EMAIL PROTECTED]> wrote:
> I want to access cpu registers using KLD.How should i do that?
> My aim is to save current registers values on disk.
> Any documentation or code regrading this will also help me.
Are you sure something like this would be useful?
> I want to access cpu registers
I don't know if this helps.
[...]
#include
[...]
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 ma
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 wan
4 matches
Mail list logo