215 |
|
#endif |
216 |
|
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, siginfo_t *sip, void *scp |
217 |
|
#define SIGSEGV_FAULT_ADDRESS sip->si_addr |
218 |
+ |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
219 |
|
#if (defined(i386) || defined(__i386__)) |
220 |
|
#define SIGSEGV_FAULT_INSTRUCTION (((struct sigcontext *)scp)->sc_eip) |
221 |
|
#define SIGSEGV_REGISTER_FILE ((unsigned int *)&(((struct sigcontext *)scp)->sc_edi)) /* EDI is the first GPR (even below EIP) in sigcontext */ |
224 |
|
#define SIGSEGV_SKIP_INSTRUCTION ix86_skip_instruction |
225 |
|
*/ |
226 |
|
#endif |
227 |
+ |
#endif |
228 |
|
#if defined(__linux__) |
229 |
|
#if (defined(i386) || defined(__i386__)) |
230 |
|
#include <sys/ucontext.h> |