lose("sunos major version=%d (which isn't 5!)\n", major_version);
}
minor_version = atoi(name.release+2);
- if ((minor_version == 8) ||
- (minor_version == 9) ||
- (minor_version == 10)) {
- KLUDGE_MAYBE_MAP_ANON = 0x100;
- } else if (minor_version > 10) {
- FSHOW((stderr, "os_init: Solaris version greater than 9?\nUnknown MAP_ANON behaviour.\n"));
- lose("Unknown mmap() interaction with MAP_ANON\n");
- } else { /* minor_version < 8 */
+ if ((minor_version < 8)) {
kludge_mmap_fd = open("/dev/zero",O_RDONLY);
if (kludge_mmap_fd < 0) {
perror("open");
lose("Error in open(..)\n");
}
+ } else if (minor_version > 11) {
+ FSHOW((stderr, "os_init: Solaris version greater than 11?\nUnknown MAP_ANON behaviour.\n"));
+ lose("Unknown mmap() interaction with MAP_ANON\n");
+ } else {
+ /* Versions 8-11*/
+ KLUDGE_MAYBE_MAP_ANON = 0x100;
}
/* I do not understand this at all. FIXME. */
{
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))
arrange_return_to_lisp_function(context,
SymbolFunction(MEMORY_FAULT_ERROR));
#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);
}
+