diff options
author | 2003-08-01 07:47:58 +0000 | |
---|---|---|
committer | 2003-08-01 07:47:58 +0000 | |
commit | 9ce3c12bdb50c22bdbf2ffac540930d88905dbd7 (patch) | |
tree | d832c5bf154e1c5a1ce55f878f5440b5af7eac3c | |
parent | Do not use hardcoded values for constants which are in fact computed from other (diff) | |
download | wireguard-openbsd-9ce3c12bdb50c22bdbf2ffac540930d88905dbd7.tar.xz wireguard-openbsd-9ce3c12bdb50c22bdbf2ffac540930d88905dbd7.zip |
Compensate for the assym.h lossage, which defines NBPG for now (this will be
cleaned up soon...)
-rw-r--r-- | sys/arch/mvme88k/mvme88k/locore_c_routines.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/mvme88k/locore_c_routines.c b/sys/arch/mvme88k/mvme88k/locore_c_routines.c index dfbc57a2903..6dfec40381e 100644 --- a/sys/arch/mvme88k/mvme88k/locore_c_routines.c +++ b/sys/arch/mvme88k/mvme88k/locore_c_routines.c @@ -1,4 +1,4 @@ -/* $OpenBSD: locore_c_routines.c,v 1.27 2003/01/14 03:20:16 miod Exp $ */ +/* $OpenBSD: locore_c_routines.c,v 1.28 2003/08/01 07:47:58 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -27,6 +27,7 @@ */ #include "assym.h" +#undef NBPG /* gasp */ #include <sys/param.h> #include <sys/types.h> diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 8e37ce4f836..1bf6203f03b 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.101 2003/05/11 19:41:11 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.102 2003/08/01 07:47:58 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -98,7 +98,6 @@ #include <mvme88k/dev/pcctworeg.h> #include <mvme88k/dev/busswreg.h> -#include "assym.h" /* EF_EPSR, etc. */ #include "ksyms.h" #if DDB #include <machine/db_machdep.h> @@ -2399,6 +2398,7 @@ mvme_bootstrap() last_addr = memsize187(); break; #endif +#if defined(MVME188) || defined(MVME197) #ifdef MVME188 case BRD_188: #endif @@ -2407,6 +2407,9 @@ mvme_bootstrap() #endif last_addr = size_memory(); break; +#endif + default: + break; } physmem = btoc(last_addr); |