mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Garbage-collect the "LOCORE" version of MPLOCKED.
This commit is contained in:
parent
f2671fcf9f
commit
d2f22d707a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90515
@ -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
|
||||
|
@ -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
|
||||
|
@ -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_ */
|
||||
|
@ -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
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user