[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: context.cr2



I still get an error when compiling, but when I totally remove the
reference, it compiles without error?? although the app doens' run and
complains about
[Restarting capture daemon for Cam1, shared memory not valid]


that could be the lowlevel stuff right?

tnx for helping, maybe I should ask zoneminder developer.

zm_signal.cpp: In function 'void zm_die_handler(int, sigcontext)':
zm_signal.cpp:95: error: base operand of '->' has non-pointer type 'sigcontext'
make[1]: *** [zm_signal.o] Error 1
make[1]: Leaving directory `/var/www/ZoneMinder-1.22.2/src'

Kasper

On 6/7/06, Gabriel Paubert <paubert@iram.es> wrote:
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: