wrong msr/nip value

pnilesh at in.ibm.com pnilesh at in.ibm.com
Tue Mar 13 00:39:18 EST 2001


Hi,
                I am using Apple G4 dual on which I am getting ZERO values
of msr,nip and other
register values of strcut ptr_regs in the signal handler.

                                         My code is like this,
void handler(int signum,siginfo_t *s_,void *v)
{
                      struct sigcontext *p = (struct ptr_regs *)v;
printf("msr = %x \n nip = %x \n", p->regs->msr,p->regs->nip);
}

You can assume to it be an SIGALRM handler .

Thanks
Nilesh


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-dev mailing list