272 |
|
#define SIGSEGV_REGISTER_FILE (unsigned long *)SIGSEGV_CONTEXT_REGS |
273 |
|
#define SIGSEGV_SKIP_INSTRUCTION ix86_skip_instruction |
274 |
|
#endif |
275 |
+ |
#if (defined(powerpc) || defined(__powerpc__)) |
276 |
+ |
#include <sys/ucontext.h> |
277 |
+ |
#define SIGSEGV_CONTEXT_REGS (((ucontext_t *)scp)->uc_mcontext.__gregs) |
278 |
+ |
#define SIGSEGV_FAULT_INSTRUCTION SIGSEGV_CONTEXT_REGS[_REG_PC] |
279 |
+ |
#define SIGSEGV_REGISTER_FILE (unsigned long *)&SIGSEGV_CONTEXT_REGS[_REG_PC], (unsigned long *)&SIGSEGV_CONTEXT_REGS[_REG_R0] |
280 |
+ |
#define SIGSEGV_SKIP_INSTRUCTION powerpc_skip_instruction |
281 |
+ |
#endif |
282 |
|
#endif |
283 |
|
#if defined(__linux__) |
284 |
|
#if (defined(i386) || defined(__i386__)) |