X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Farch.h;h=c8ef4802deee65097222f7234884fdb83c864698;hb=c8617f57d0413beb2890e94dabe227cef9c5ddad;hp=4a7bc1b5d44c5853d76ba9882bae952c5f3e3d6f;hpb=1fca8fbb946ba06cedf777c3a6927f14d24cfae5;p=sbcl.git diff --git a/src/runtime/arch.h b/src/runtime/arch.h index 4a7bc1b..c8ef480 100644 --- a/src/runtime/arch.h +++ b/src/runtime/arch.h @@ -22,6 +22,7 @@ extern void arch_init(void); /* FIXME: It would be good to document these too! */ extern void arch_skip_instruction(os_context_t*); +extern void arch_handle_allocation_trap(os_context_t*); extern boolean arch_pseudo_atomic_atomic(os_context_t*); extern void arch_set_pseudo_atomic_interrupted(os_context_t*); extern void arch_clear_pseudo_atomic_interrupted(os_context_t*); @@ -34,6 +35,9 @@ extern void arch_do_displaced_inst(os_context_t *context, unsigned int orig_inst); extern int arch_os_thread_init(struct thread *thread); +#if defined(LISP_FEATURE_X86) && defined(LISP_FEATURE_SB_THREAD) +extern void arch_os_load_ldt(struct thread *thread); +#endif extern int arch_os_thread_cleanup(struct thread *thread); extern lispobj funcall0(lispobj function); @@ -43,12 +47,21 @@ extern lispobj funcall3(lispobj function, lispobj arg0, lispobj arg1, lispobj arg2); extern lispobj *component_ptr_from_pc(lispobj *pc); -extern void fpu_save(void *); -extern void fpu_restore(void *); +extern void AMD64_SYSV_ABI fpu_save(void *); +extern void AMD64_SYSV_ABI fpu_restore(void *); -#ifdef LISP_FEATURE_X86 +#if defined(LISP_FEATURE_X86)||defined(LISP_FEATURE_X86_64) extern unsigned int * single_stepping; extern void restore_breakpoint_from_single_step(os_context_t * context); #endif +extern void arch_handle_breakpoint(os_context_t* context); +extern void arch_handle_fun_end_breakpoint(os_context_t *context); +#ifdef trap_AfterBreakpoint +extern void arch_handle_after_breakpoint(os_context_t *context); +#endif +#ifdef trap_SingleStepAround +extern void arch_handle_single_step_trap(os_context_t *context, int trap); +#endif + #endif /* __ARCH_H__ */