Re: context.cr2
On Wed, Jun 07, 2006 at 12:13:20PM +0200, Kasper Jordaens wrote:
> Hi all,
>
> I'm trying to compile zoneminder on debianPPC. this should be quite
> easy but I get an error on context.cr2 & context.eip.
>
>
> zm_signal.cpp:89: error: 'struct sigcontext' has no member named 'cr2'
> zm_signal.cpp:89: error: 'struct sigcontext' has no member named 'eip'
> zm_signal.cpp:93: error: 'struct sigcontext' has no member named 'eip'
>
>
>
> I was wondering what cr2 was, and I read :
>
>
>
> "It's the i386 page fault address register. On other processors it has a
> different name."
>
>
> so what is it named on on ppc? is context.eip one of the same kind?
> what should I change it to?
There is one more indirection on ppc:
context.eip becomes context->pt_regs.nip
context.cr2 becomes context->pt_regs.dar
Now I don't know what an application wants to do with this
low level information. Besides that it seems impossible
to access the FP registers on 32 bit PPC.
Regards,
Gabriel
Reply to:
- References:
- context.cr2
- From: "Kasper Jordaens" <kasper.jordaens@gmail.com>