105 |
|
#define SIGSEGV_SKIP_INSTRUCTION ix86_skip_instruction |
106 |
|
#define SIGSEGV_REGISTER_FILE ((SIGSEGV_REGISTER_TYPE *)&SIP->thr_state.MACH_FIELD_NAME(rax)) /* RAX is the first GPR we consider */ |
107 |
|
#endif |
108 |
+ |
#ifdef __x86_64__ |
109 |
+ |
#define SIGSEGV_FAULT_ADDRESS_FAST (((uint64_t)code[1])|0x100000000) |
110 |
+ |
#else |
111 |
|
#define SIGSEGV_FAULT_ADDRESS_FAST code[1] |
112 |
+ |
#endif |
113 |
|
#define SIGSEGV_FAULT_INSTRUCTION_FAST SIGSEGV_INVALID_ADDRESS |
114 |
|
#define SIGSEGV_FAULT_HANDLER_ARGLIST mach_port_t thread, mach_exception_data_t code |
115 |
|
#define SIGSEGV_FAULT_HANDLER_ARGS thread, code |