diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2002-02-11 03:41:59 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2002-02-11 03:41:59 +0000 |
| commit | d2f22d707a613465ef6bad7492e976baa28d2e85 (patch) | |
| tree | 166ce61d2239961bd191c6f6ac1c34d774a5f25e | |
| parent | f2671fcf9fea8a0107a7c6ee0aa1284fb62f8ee5 (diff) | |
Notes
| -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 | ||||
| -rw-r--r-- | sys/i386/i386/exception.s | 1 | ||||
| -rw-r--r-- | sys/i386/include/atomic.h | 12 |
5 files changed, 4 insertions, 23 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index 28579ac8e96a..0b395e241102 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 28579ac8e96a..0b395e241102 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 88e7348b9ae0..157f857383a8 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_ */ diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index 28579ac8e96a..0b395e241102 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/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/i386/include/atomic.h b/sys/i386/include/atomic.h index 88e7348b9ae0..157f857383a8 100644 --- a/sys/i386/include/atomic.h +++ b/sys/i386/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_ */ |
