Re: ucontext.h
David Mosberger <[email protected]> Wed, 6 Oct 2004 02:53:56 -0700
| Newsgroups | gmane.linux.ports.ia64,gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Tue, 5 Oct 2004 23:56:21 -0700 (PDT), pramod sharma <[email protected]> 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> .......is 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: http://www.gelato.unsw.edu.au/linux-ia64/0202/3059.html 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'': http://www.intel.com/design/itanium/manuals/iiasdmanual.htm BTW: you'd be better off asking such technical questions on [email protected], which I cc'd on this reply. --david - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html