Delete a ton of cruft from the globaldb initialization logic.
[sbcl.git] / src / runtime / alpha-osf1-os.c
blob946a70ec83819a8d93b535a42dbe0d5379d87918
1 /*
2 * This is the Compaq/Digital Alpha Linux incarnation of
3 * arch-dependent OS-dependent routines. See also "linux-os.c". */
5 /*
6 * This software is part of the SBCL system. See the README file for
7 * more information.
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
17 * ca. 2001-05-01 */
19 #include <stdio.h>
20 #include <sys/param.h>
21 #include <sys/file.h>
22 #include "sbcl.h"
23 #include "./signal.h"
24 #include "os.h"
25 #include "arch.h"
26 #include "globals.h"
27 #include "interrupt.h"
28 #include "interr.h"
29 #include "lispregs.h"
30 #include <sys/socket.h>
31 #include <sys/utsname.h>
33 #include <sys/types.h>
34 #include <signal.h>
35 #include <sys/time.h>
36 #include <sys/stat.h>
37 #include <unistd.h>
38 #include <c_asm.h>
39 #include <ucontext.h>
41 #include "validate.h"
42 size_t os_vm_page_size;
44 #ifdef LISP_FEATURE_SB_THREAD
45 #error "Define threading support functions"
46 #else
47 int arch_os_thread_init(struct thread *thread) {
48 return 1; /* success */
50 int arch_os_thread_cleanup(struct thread *thread) {
51 return 1; /* success */
53 #endif
55 os_context_register_t *
56 os_context_register_addr(os_context_t *context, int offset)
58 return &context->uc_mcontext.sc_regs[offset];
61 os_context_register_t *
62 os_context_float_register_addr(os_context_t *context, int offset)
64 return &context->uc_mcontext.sc_fpregs[offset];
67 os_context_register_t *
68 os_context_pc_addr(os_context_t *context)
70 return &((context->uc_mcontext).sc_pc);
73 sigset_t *
74 os_context_sigmask_addr(os_context_t *context)
76 return &context->uc_sigmask;
79 unsigned long
80 os_context_fp_control(os_context_t *context)
82 return 0; /* FIXME */
83 /* ieee_fpcr_to_swcr((context->uc_mcontext).sc_fpcr); */
87 void os_flush_icache(os_vm_address_t address, os_vm_size_t length)
89 #ifdef __GNUC__
90 asm volatile ("imb" : : : "memory" );
91 #else
92 /* digital CC has different syntax */
93 asm("imb");
94 #endif