0.9.2.42:
[sbcl.git] / src / runtime / hppa-linux-os.c
index f69b16b..3cc5417 100644 (file)
@@ -17,6 +17,7 @@
 #include <stdio.h>
 #include <sys/param.h>
 #include <sys/file.h>
+#include "sbcl.h"
 #include "./signal.h"
 #include "os.h"
 #include "arch.h"
@@ -24,7 +25,6 @@
 #include "interrupt.h"
 #include "interr.h"
 #include "lispregs.h"
-#include "sbcl.h"
 #include <sys/socket.h>
 #include <sys/utsname.h>
 
@@ -40,9 +40,6 @@ size_t os_vm_page_size;
 #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 */
 }
@@ -55,15 +52,15 @@ 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]);
     }
 }
 
@@ -86,13 +83,13 @@ os_context_sigmask_addr(os_context_t *context)
     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. */