diff options
author | dt <dt@FreeBSD.org> | 1999-04-20 22:20:57 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-04-20 22:20:57 +0000 |
commit | e795cd37ab210201c9db979663ad8d29d2d00620 (patch) | |
tree | f937c28d6b96a90c0ba34d758e66206741f5ab7e | |
parent | 0232b8dbc35ec6cccef686f5f8e9d9624dd742d9 (diff) | |
download | FreeBSD-src-e795cd37ab210201c9db979663ad8d29d2d00620.zip FreeBSD-src-e795cd37ab210201c9db979663ad8d29d2d00620.tar.gz |
alpha/include/param.h: #define NCPUS 1
alpha/include/lock.h: remove nop simplelock macros, which are defined
in <sys/lock.h> if NCPUS == 1.
As a result, NULL_SIMPLELOCK is defined, and a few warnings removed.
-rw-r--r-- | sys/alpha/include/lock.h | 7 | ||||
-rw-r--r-- | sys/alpha/include/param.h | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/sys/alpha/include/lock.h b/sys/alpha/include/lock.h index 2c695f9..f10c60f 100644 --- a/sys/alpha/include/lock.h +++ b/sys/alpha/include/lock.h @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: lock.h,v 1.2 1998/06/10 10:55:10 dfr Exp $ + * $Id: lock.h,v 1.3 1998/07/22 08:28:24 dfr Exp $ */ @@ -38,11 +38,6 @@ struct simplelock { volatile int lock_data; }; -#define simple_lock_init(alp) -#define simple_lock(alp) -#define simple_lock_try(alp) 1 -#define simple_unlock(alp) - #define COM_LOCK() #define COM_UNLOCK() diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h index a735a99..0fbbf95 100644 --- a/sys/alpha/include/param.h +++ b/sys/alpha/include/param.h @@ -1,4 +1,4 @@ -/* $Id: param.h,v 1.9 1999/03/01 06:10:16 imp Exp $ */ +/* $Id: param.h,v 1.10 1999/04/11 12:19:02 simokawa Exp $ */ /* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */ /* @@ -70,6 +70,8 @@ #define OBJFORMAT_NAMES "elf" #define OBJFORMAT_DEFAULT "elf" +#define NCPUS 1 + /* * Round p (pointer or byte index) up to a correctly-aligned value for all * data types (int, long, ...). The result is u_long and must be cast to |