summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/atomic.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-11 03:41:59 +0000
committerbde <bde@FreeBSD.org>2002-02-11 03:41:59 +0000
commit78de9bc0b9dec9b9a243e2e44a2ed426423ab068 (patch)
tree166ce61d2239961bd191c6f6ac1c34d774a5f25e /sys/amd64/include/atomic.h
parent462f3b689d8d0bc13cdfe34dfda74fac6885d101 (diff)
downloadFreeBSD-src-78de9bc0b9dec9b9a243e2e44a2ed426423ab068.zip
FreeBSD-src-78de9bc0b9dec9b9a243e2e44a2ed426423ab068.tar.gz
Garbage-collect the "LOCORE" version of MPLOCKED.
Diffstat (limited to 'sys/amd64/include/atomic.h')
-rw-r--r--sys/amd64/include/atomic.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h
index 88e7348..157f857 100644
--- a/sys/amd64/include/atomic.h
+++ b/sys/amd64/include/atomic.h
@@ -80,16 +80,11 @@ void atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v);
* the binaries will run on both types of systems.
*/
#if defined(SMP) || !defined(_KERNEL)
-#if defined(LOCORE)
-#define MPLOCKED lock ;
-#else /* !LOCORE */
#define MPLOCKED "lock ; "
-#endif /* LOCORE */
-#else /* SMP || !_KERNEL */
+#else
#define MPLOCKED
-#endif /* SMP || !_KERNEL */
+#endif
-#if !defined(LOCORE)
/*
* The assembly is volatilized to demark potential before-and-after side
* effects if an interrupt or SMP collision were to occur.
@@ -205,10 +200,8 @@ atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\
: : "memory"); \
}
#endif /* defined(I386_CPU) */
-#endif /* !defined(LOCORE) */
#endif /* KLD_MODULE */
-#if !defined(LOCORE)
ATOMIC_ASM(set, char, "orb %b1,%0", "iq", v)
ATOMIC_ASM(clear, char, "andb %b1,%0", "iq", ~v)
ATOMIC_ASM(add, char, "addb %b1,%0", "iq", v)
@@ -407,5 +400,4 @@ atomic_readandclear_long(volatile u_long *addr)
return (result);
}
#endif /* !defined(WANT_FUNCTIONS) */
-#endif /* !defined(LOCORE) */
#endif /* ! _MACHINE_ATOMIC_H_ */
OpenPOWER on IntegriCloud