#include <stdio.h>
#include <sys/param.h>
#include <sys/file.h>
+#include "sbcl.h"
#include "./signal.h"
#include "os.h"
#include "arch.h"
#include "interrupt.h"
#include "interr.h"
#include "lispregs.h"
-#include "sbcl.h"
#include <sys/socket.h>
#include <sys/utsname.h>
#include "validate.h"
size_t os_vm_page_size;
+#ifdef LISP_FEATURE_SB_THREAD
+#error "Define threading support functions"
+#else
+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 *
os_context_register_addr(os_context_t *context, int offset)
{
if (offset == 0) {
- /* KLUDGE: I'm not sure, but it's possible that Linux puts the
+ /* KLUDGE: I'm not sure, but it's possible that Linux puts the
contents of the Processor Status Word in the (wired-zero)
slot in the mcontext. In any case, the following is
unlikely to do any harm: */
- static int zero;
- zero = 0;
- return &zero;
+ static int zero;
+ zero = 0;
+ return &zero;
} else {
- return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]);
+ return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]);
}
}
return &(context->uc_sigmask);
}
-void
+void
os_restore_fp_control(os_context_t *context)
{
/* FIXME: Probably do something. */
}
-void
+void
os_flush_icache(os_vm_address_t address, os_vm_size_t length)
{
/* FIXME: Maybe this is OK. */