if(in_range_p(addr, READ_ONLY_SPACE_START, READ_ONLY_SPACE_SIZE) ||
in_range_p(addr, STATIC_SPACE_START , STATIC_SPACE_SIZE) ||
#ifdef LISP_FEATURE_GENCGC
- in_range_p(addr, DYNAMIC_SPACE_START, DYNAMIC_SPACE_SIZE)
+ in_range_p(addr, DYNAMIC_SPACE_START , dynamic_space_size)
#else
- in_range_p(addr, DYNAMIC_0_SPACE_START, DYNAMIC_SPACE_SIZE) ||
- in_range_p(addr, DYNAMIC_1_SPACE_START, DYNAMIC_SPACE_SIZE)
+ in_range_p(addr, DYNAMIC_0_SPACE_START, dynamic_space_size) ||
+ in_range_p(addr, DYNAMIC_1_SPACE_START, dynamic_space_size)
#endif
)
return 1;
{
os_context_t *context = arch_os_get_context(&void_context);
void* fault_addr = (void*)info->si_addr;
- if(info->si_code == 1)
- {
- perror("error: SEGV_MAPERR\n");
- exit(1);
- }
if (!gencgc_handle_wp_violation(fault_addr))
if(!handle_guard_page_triggered(context, fault_addr))
#ifdef LISP_FEATURE_C_STACK_IS_CONTROL_STACK
- arrange_return_to_lisp_function(context,
- SymbolFunction(MEMORY_FAULT_ERROR));
+ lisp_memory_fault_error(context, fault_addr);
#else
- interrupt_handle_now(signal, info, context);
+ interrupt_handle_now(signal, info, context);
#endif
}
{
undoably_install_low_level_interrupt_handler(SIG_MEMORY_FAULT,
sigsegv_handler);
+
+#ifdef LISP_FEATURE_SB_THREAD
+ undoably_install_low_level_interrupt_handler(SIG_INTERRUPT_THREAD,
+ interrupt_thread_handler);
+ undoably_install_low_level_interrupt_handler(SIG_STOP_FOR_GC,
+ sig_stop_for_gc_handler);
+#endif
}
char *
return copied_string(path);
}
+