diff options
author | bde <bde@FreeBSD.org> | 2002-02-11 03:41:59 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-11 03:41:59 +0000 |
commit | 78de9bc0b9dec9b9a243e2e44a2ed426423ab068 (patch) | |
tree | 166ce61d2239961bd191c6f6ac1c34d774a5f25e /sys/amd64 | |
parent | 462f3b689d8d0bc13cdfe34dfda74fac6885d101 (diff) | |
download | FreeBSD-src-78de9bc0b9dec9b9a243e2e44a2ed426423ab068.zip FreeBSD-src-78de9bc0b9dec9b9a243e2e44a2ed426423ab068.tar.gz |
Garbage-collect the "LOCORE" version of MPLOCKED.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/exception.S | 1 | ||||
-rw-r--r-- | sys/amd64/amd64/exception.s | 1 | ||||
-rw-r--r-- | sys/amd64/include/atomic.h | 12 |
3 files changed, 2 insertions, 12 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index 28579ac..0b395e2 100644 --- a/sys/amd64/amd64/exception.S +++ b/sys/amd64/amd64/exception.S @@ -37,7 +37,6 @@ #include <machine/asmacros.h> #include <sys/mutex.h> -#include <machine/atomic.h> #include <machine/psl.h> #include <machine/trap.h> #ifdef SMP diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s index 28579ac..0b395e2 100644 --- a/sys/amd64/amd64/exception.s +++ b/sys/amd64/amd64/exception.s @@ -37,7 +37,6 @@ #include <machine/asmacros.h> #include <sys/mutex.h> -#include <machine/atomic.h> #include <machine/psl.h> #include <machine/trap.h> #ifdef SMP 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_ */ |