Re: ucontext.h

From: David Mosberger <>
Date: 2004-10-06 19:53:56
>>>>> On Tue, 5 Oct 2004 23:56:21 -0700 (PDT), pramod sharma <> said:

  Pramod> For the intel x86 , running on Linux, the struct ucontext
  Pramod> *ucp ; ucp-> uc_mcontext.gregs[ERR]" field can be used to
  Pramod> find out whether READ or WRITE caused the page fault. This
  Pramod> field simply means that we get the interrupted instruction
  Pramod> from ucontext (saved user context) and check whether it is
  Pramod> read or write.

  Pramod> but for IA -64 , there is no structure defined like this
  Pramod> this not supported for IA64 .

  Pramod> How can I acheive this in IA64 ?

  Pramod> Any pointers in this direction will be helpful.

See this mail:

And/or the comment near si_isr in /usr/include/asm/siginfo.h:

 * si_isr is valid for SIGILL, SIGFPE, SIGSEGV, SIGBUS, and SIGTRAP provided
 * that si_code is non-zero and __ISR_VALID is set in si_flags.
#define si_isr          _sifields._sigfault._isr

For a description of the contents of si_isr, see page 2-154 in Volume
2 of the ``Intel Itanium Architecture Software Developer's Manual'':

BTW: you'd be better off asking such technical questions on, which I cc'd on this reply.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Oct 6 05:54:29 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:31 EST