X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Finterrupt.h;h=3a6a51b5dee3e8ab77ed5517848a6aadbb25b340;hb=1d06300e09f767a38bbe6d5b38232ca334ab1913;hp=05c6638680a53f05ede961a100abff25be25249e;hpb=2b82a3b74bce63abaf496587eba08339ac938c91;p=sbcl.git diff --git a/src/runtime/interrupt.h b/src/runtime/interrupt.h index 05c6638..3a6a51b 100644 --- a/src/runtime/interrupt.h +++ b/src/runtime/interrupt.h @@ -113,7 +113,7 @@ struct interrupt_data { * and with no pending handler. Both deferrable interrupt handlers * and gc are careful not to clobber each other's pending_mask. */ boolean gc_blocked_deferrables; -#ifdef LISP_FEATURE_PPC +#ifdef GENCGC_IS_PRECISE /* On PPC when consing wants to turn to alloc(), it does so via a * trap. When alloc() wants to save the sigmask it consults * allocation_trap_context. It does not look up the most recent @@ -123,10 +123,15 @@ struct interrupt_data { #endif }; +typedef lispobj (*call_into_lisp_lookalike)( + lispobj fun, lispobj *args, int nargs); + extern boolean interrupt_handler_pending_p(void); extern void interrupt_init(void); extern void fake_foreign_function_call(os_context_t* context); extern void undo_fake_foreign_function_call(os_context_t* context); +extern void arrange_return_to_c_function( + os_context_t *, call_into_lisp_lookalike, lispobj); extern void arrange_return_to_lisp_function(os_context_t *, lispobj); extern void interrupt_handle_now(int, siginfo_t*, os_context_t*); extern void interrupt_handle_pending(os_context_t*); @@ -171,4 +176,10 @@ extern void lisp_memory_fault_error(os_context_t *context, extern void lower_thread_control_stack_guard_page(struct thread *th); extern void reset_thread_control_stack_guard_page(struct thread *th); +#if defined(LISP_FEATURE_SB_SAFEPOINT) && !defined(LISP_FEATURE_WIN32) +# ifdef LISP_FEATURE_SB_THRUPTION +void thruption_handler(int signal, siginfo_t *info, os_context_t *context); +# endif +#endif + #endif