1 /* FIXME: Aren't preprocessor symbols with underscore prefixes
2 * reserved for the system libraries? If so, it would be tidy to
3 * rename flags like _X86_ARCH_H so their names are in a part of the
4 * namespace that we control. */
8 #ifndef SBCL_GENESIS_CONFIG
9 #error genesis/config.h (or sbcl.h) must be included before this file
12 #include "interr.h" /* for declaration of lose() */
14 #define ARCH_HAS_STACK_POINTER
15 #define ALIEN_STACK_GROWS_DOWNWARD
17 /* FIXME: Do we also want
18 * #define ARCH_HAS_FLOAT_REGISTERS
19 * here? (The answer wasn't obvious to me when merging the
20 * architecture-abstracting patches for CSR's SPARC port. -- WHN 2002-02-15) */
22 #define COMPILER_BARRIER \
23 do { __asm__ __volatile__ ( "" : : : "memory"); } while (0)
26 get_spinlock(volatile lispobj
*word
, unsigned long value
)
28 #ifdef LISP_FEATURE_SB_THREAD
31 lose("recursive get_spinlock: 0x%x,%ld\n",word
,value
);
33 #if defined(LISP_FEATURE_DARWIN)
38 : "r" (value
), "m" (*word
)
45 : "r" (value
), "m" (*word
)
55 release_spinlock(volatile lispobj
*word
)
57 /* See comment in RELEASE-SPINLOCK in target-thread.lisp. */
64 swap_lispobjs(volatile lispobj
*dest
, lispobj value
)
70 : "r" (dest
), "0" (value
)
75 #endif /* _X86_64_ARCH_H */