X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsparc-sunos-os.c;h=73440fb13f37cfa5e6800c7f10bde4961a540249;hb=df679ed627975948b1cee190f4d79c397588c43e;hp=6b8364d66de4133fbc3bd4351268a51dc41d6df7;hpb=cd3ba8630e52f6131f7bc9931bc2fe77c77fe1a9;p=sbcl.git diff --git a/src/runtime/sparc-sunos-os.c b/src/runtime/sparc-sunos-os.c index 6b8364d..73440fb 100644 --- a/src/runtime/sparc-sunos-os.c +++ b/src/runtime/sparc-sunos-os.c @@ -36,8 +36,18 @@ #include "validate.h" -#if defined GENCGC /* unlikely ... */ -#include "gencgc.h" +#ifdef LISP_FEATURE_SB_THREAD +#error "Define threading support functions" +#else +struct thread *arch_os_get_current_thread() { + return all_threads; +} +int arch_os_thread_init(struct thread *thread) { + return 1; /* success */ +} +int arch_os_thread_cleanup(struct thread *thread) { + return 1; /* success */ +} #endif os_context_register_t * @@ -77,6 +87,12 @@ os_context_sigmask_addr(os_context_t *context) return &(context->uc_sigmask); } +unsigned long +os_context_fp_control(os_context_t *context) +{ + return (context->uc_mcontext.fpregs.fpu_fsr); +} + void os_flush_icache(os_vm_address_t address, os_vm_size_t length) { /* see sparc-assem.S */