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.
This commit is contained in:
Dmitrij Tejblum 1999-04-20 22:20:57 +00:00
parent 9baac9f2e9
commit 1d8ca40c41
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45886
2 changed files with 4 additions and 7 deletions

View File

@ -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()

View File

@ -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