ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sigsegv.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/sigsegv.cpp (file contents):
Revision 1.10 by gbeauche, 2002-05-12T11:10:50Z vs.
Revision 1.11 by gbeauche, 2002-05-12T13:51:22Z

# Line 125 | Line 125 | static sigsegv_address_t get_fault_addre
125  
126   // Irix 5 or 6 on MIPS
127   #if (defined(sgi) || defined(__sgi)) && (defined(SYSTYPE_SVR4) || defined(__SYSTYPE_SVR4))
128 + #include <ucontext.h>
129   #define SIGSEGV_FAULT_HANDLER_ARGLIST   int sig, int code, struct sigcontext *scp
130   #define SIGSEGV_FAULT_ADDRESS                   scp->sc_badvaddr
131   #define SIGSEGV_ALL_SIGNALS                             FAULT_HANDLER(SIGSEGV)
132   #endif
133  
134 + // HP-UX
135 + #if (defined(hpux) || defined(__hpux__))
136 + #define SIGSEGV_FAULT_HANDLER_ARGLIST   int sig, int code, struct sigcontext *scp
137 + #define SIGSEGV_FAULT_ADDRESS                   scp->sc_sl.sl_ss.ss_narrow.ss_cr21
138 + #define SIGSEGV_ALL_SIGNALS                             FAULT_HANDLER(SIGSEGV) FAULT_HANDLER(SIGBUS)
139 + #endif
140 +
141   // OSF/1 on Alpha
142   #if defined(__osf__)
143 + #include <ucontext.h>
144   #define SIGSEGV_FAULT_HANDLER_ARGLIST   int sig, int code, struct sigcontext *scp
145   #define SIGSEGV_FAULT_ADDRESS                   scp->sc_traparg_a0
146   #define SIGSEGV_ALL_SIGNALS                             FAULT_HANDLER(SIGSEGV)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines