#if defined LISP_FEATURE_SPARC
#define OS_VM_DEFAULT_PAGESIZE 8192
-#elif defined LISP_FEATURE_X86
+#elif defined LISP_FEATURE_X86 || defined LISP_FEATURE_X86_64
#define OS_VM_DEFAULT_PAGESIZE 4096
#else
#error "Don't know OS_VM_DEFAULT_PAGESIZE"
if (!cheneygc_handle_wp_violation(context, addr)) {
if (!handle_guard_page_triggered(context,addr))
- lisp_memory_fault_error(context, fault_addr);
+ lisp_memory_fault_error(context, addr);
}
}
}
char *
-os_get_runtime_executable_path()
+os_get_runtime_executable_path(int external)
{
- int ret;
char path[] = "/proc/self/object/a.out";
- ret = access(path, R_OK);
- if (ret == -1)
+ if (external || access(path, R_OK) == -1)
return NULL;
return copied_string(path);