0.9.9.34:
[sbcl.git] / src / runtime / x86-arch.h
index 6c7802a..7fe1aa0 100644 (file)
@@ -16,7 +16,7 @@
  * here? (The answer wasn't obvious to me when merging the
  * architecture-abstracting patches for CSR's SPARC port. -- WHN 2002-02-15) */
 
-extern never_returns lose(char *fmt, ...);
+#include "interr.h"
 
 static inline void
 get_spinlock(volatile lispobj *word,long value)
@@ -43,4 +43,20 @@ release_spinlock(volatile lispobj *word)
     *word=0;
 }
 
+#include <stdio.h>
+
+static inline lispobj
+swap_lispobjs(volatile lispobj *dest, lispobj value)
+{
+    lispobj old_value;
+    asm ("lock xchg %0,(%1)"
+         : "=r" (old_value)
+         : "r" (dest), "0" (value)
+         : "memory");
+    return old_value;
+}
+
+extern void fast_bzero_detect(void *, size_t);
+extern void (*fast_bzero_pointer)(void *, size_t);
+
 #endif /* _X86_ARCH_H */