2 * This is the Compaq/Digital Alpha Linux incarnation of
3 * arch-dependent OS-dependent routines. See also "linux-os.c". */
6 * This software is part of the SBCL system. See the README file for
9 * This software is derived from the CMU CL system, which was
10 * written at Carnegie Mellon University and released into the
11 * public domain. The software is in the public domain and is
12 * provided with absolutely no warranty. See the COPYING and CREDITS
13 * files for more information.
16 /* Some of these header files may be redundant. -- Dan Barlow
20 #include <sys/param.h>
26 #include "interrupt.h"
30 #include <sys/socket.h>
31 #include <sys/utsname.h>
33 #include <sys/types.h>
42 size_t os_vm_page_size;
44 #ifdef LISP_FEATURE_SB_THREAD
45 #error "Define threading support functions"
47 struct thread *arch_os_get_current_thread() {
50 int arch_os_thread_init(struct thread *thread) {
51 return 1; /* success */
53 int arch_os_thread_cleanup(struct thread *thread) {
54 return 1; /* success */
58 os_context_register_t *
59 os_context_register_addr(os_context_t *context, int offset)
61 return &context->uc_mcontext.sc_regs[offset];
64 os_context_register_t *
65 os_context_float_register_addr(os_context_t *context, int offset)
67 return &context->uc_mcontext.sc_fpregs[offset];
70 os_context_register_t *
71 os_context_pc_addr(os_context_t *context)
73 return &((context->uc_mcontext).sc_pc);
77 os_context_sigmask_addr(os_context_t *context)
79 return &context->uc_sigmask;
83 os_context_fp_control(os_context_t *context)
86 /* ieee_fpcr_to_swcr((context->uc_mcontext).sc_fpcr); */
90 void os_flush_icache(os_vm_address_t address, os_vm_size_t length)
93 asm volatile ("imb" : : : "memory" );
95 /* digital CC has different syntax */