Fix cut-to-width in the presence of bad constants in dead code.
[sbcl.git] / src / runtime / sparc-linux-os.h
index f4f677c..5c02fc6 100644 (file)
@@ -2,10 +2,12 @@
 #define _SPARC_LINUX_OS_H
 
 typedef struct sigcontext os_context_t;
+typedef unsigned long os_context_register_t;
 
-static inline os_context_t *arch_os_get_context(void **void_context) {
+static inline os_context_t *arch_os_get_context(void **void_context)
+{
     asm volatile ("ta 0x03"); /* ta ST_FLUSH_WINDOWS */
-    return (os_context_t *) (void_context + 37);
+    return (os_context_t *) (*void_context);
 }
 
 unsigned long os_context_fp_control(os_context_t *context);