# wrong msr/nip value

- From: \<hidden\>
- Date: 2001-03-12 13:39:18 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2001/03/9375720
- Thread: https://ratatoskr.run/linuxppc-dev/2001/03/9375720/t.md

```text

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/
```
