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 /* These header files were lifted wholesale from linux-os.c, some may
17 * be redundant. -- Dan Barlow ca. 2001-05-01 */
19 #include <sys/param.h>
25 #include "interrupt.h"
29 #include <sys/socket.h>
30 #include <sys/utsname.h>
32 #include <sys/types.h>
39 size_t os_vm_page_size;
41 #if defined GENCGC /* unlikely ... */
42 #error SBCL Alpha does not work with the GENCGC
46 sigcontext_register_t *
47 os_context_register_addr(os_context_t *context, int offset)
49 return &context->uc_mcontext.sc_regs[offset];
52 sigcontext_register_t *
53 os_context_fpregister_addr(os_context_t *context, int offset)
55 return &context->uc_mcontext.sc_fpregs[offset];
58 sigcontext_register_t *
59 os_context_pc_addr(os_context_t *context)
61 return &((context->uc_mcontext).sc_pc);
63 sigcontext_register_t *
64 os_context_sp_addr(os_context_t *context)
66 lose("This was supposed to be an x86-only operation");
71 os_context_sigmask_addr(os_context_t *context)
73 return &context->uc_sigmask;
76 void os_flush_icache(os_vm_address_t address, os_vm_size_t length)
78 asm volatile ("imb" : : : "memory" );