X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fhpux-os.c;h=7737762161931c25675b49156a1304a3c2b760d9;hb=3cd426802c5f093d8d07042b9f180e38b8631c0b;hp=ff59edce1b45d7dccb33f1ab9def716cda09028c;hpb=6eab504b0bbed5d07501e5bf12b87a3654b333db;p=sbcl.git diff --git a/src/runtime/hpux-os.c b/src/runtime/hpux-os.c index ff59edc..7737762 100644 --- a/src/runtime/hpux-os.c +++ b/src/runtime/hpux-os.c @@ -30,7 +30,7 @@ size_t os_vm_page_size; void os_init(char *argv[], char *envp[]) { - os_vm_page_size = getpagesize(); + os_vm_page_size = BACKEND_PAGE_BYTES; } os_vm_address_t @@ -116,14 +116,13 @@ is_valid_lisp_addr(os_vm_address_t addr) */ static void -sigsegv_handler(int signal, siginfo_t *info, void* void_context) +sigsegv_handler(int signal, siginfo_t *info, os_context_t *context) { - os_context_t *context = arch_os_get_context(&void_context); os_vm_address_t addr = arch_get_bad_addr(signal, info, context); if (!cheneygc_handle_wp_violation(context, addr)) if (!handle_guard_page_triggered(context, addr)) - interrupt_handle_now(signal, info, context); + lisp_memory_fault_error(context, addr); *((os_context_register_t *) &((ucontext_t *) context)->uc_mcontext.ss_flags) |= SS_MODIFIEDWIDE; } @@ -136,9 +135,9 @@ os_install_interrupt_handlers(void) } char * -os_get_runtime_executable_path() +os_get_runtime_executable_path(int external) { - return copied_string("NOPE"); + return NULL; } /* when inside call_into_lisp, we will first jump to the stub