siginfo_t pending_info;
sigset_t pending_mask;
/* Was pending mask saved for gc request? True if GC_PENDING or
- * SIG_STOP_FOR_GC happened in a pseudo atomic with no GC_INHIBIT
- * NIL. Both deferrable interrupt handlers and gc are careful not
- * to clobber each other's pending_mask. */
+ * SIG_STOP_FOR_GC happened in a pseudo atomic with GC_INHIBIT NIL
+ * 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 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
+ * context, because alloc() can be called from other places
+ * too. */
+ os_context_t *allocation_trap_context;
+#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*);
os_vm_address_t addr);
#endif
+#include "thread.h"
+
+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