From: Juho Snellman Date: Sun, 4 Oct 2009 16:15:58 +0000 (+0000) Subject: 1.0.31.29: Fix x86-64/FreeBSD/thread build X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=f55dc323429b8a4be5a9620cc44f1e30a729442f;p=sbcl.git 1.0.31.29: Fix x86-64/FreeBSD/thread build * Remove a forwards incompatible FreeBSD 5 kludge (patch by Hiroyuki Komatsu) --- diff --git a/src/runtime/bsd-os.c b/src/runtime/bsd-os.c index df486eb..3b88379 100644 --- a/src/runtime/bsd-os.c +++ b/src/runtime/bsd-os.c @@ -198,19 +198,9 @@ is_valid_lisp_addr(os_vm_address_t addr) */ void -memory_fault_handler(int signal, siginfo_t *siginfo, os_context_t *context -#if defined(LISP_FEATURE_FREEBSD) && defined(LISP_FEATURE_X86_64) -/* FreeBSD/amd64 stores fault address only in undocumented 4th arg. */ - ,void *fault_addr -#endif - ) +memory_fault_handler(int signal, siginfo_t *siginfo, os_context_t *context) { -#if defined(LISP_FEATURE_FREEBSD) && defined(LISP_FEATURE_X86_64) - /* KLUDGE: Store fault address into si_addr for compatibilities. */ - siginfo->si_addr = fault_addr; -#else void *fault_addr = arch_get_bad_addr(signal, siginfo, context); -#endif #if defined(LISP_FEATURE_RESTORE_TLS_SEGMENT_REGISTER_FROM_CONTEXT) FSHOW_SIGNAL((stderr, "/ TLS: restoring fs: %p in memory_fault_handler\n", @@ -393,7 +383,8 @@ static void freebsd_init() #endif /* LISP_FEATURE_X86 */ } -#if defined(LISP_FEATURE_SB_THREAD) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX) +#if defined(LISP_FEATURE_SB_THREAD) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX) \ + && !defined(LISP_FEATURE_SB_LUTEX) int futex_wait(int *lock_word, long oldval, long sec, unsigned long usec) { diff --git a/version.lisp-expr b/version.lisp-expr index b91dd60..7348d31 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"1.0.31.28" +"1.0.31.29"