summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorimp <imp@cvs.openbsd.org>1998-07-13 05:03:31 +0000
committerimp <imp@cvs.openbsd.org>1998-07-13 05:03:31 +0000
commit5d238d65af219cab7cb4142806117c43382a430e (patch)
treeb445b73684bb2defcbd97d7bf15795539b086128 /sys/arch
parentfbfa7ac654e3a27aa04a905717960336c064c35c (diff)
Make compile when DEBUG and DIAGNOSTIC aren't defined.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arc/arc/pmap.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/arc/arc/pmap.c b/sys/arch/arc/arc/pmap.c
index 6c84e9f372e..622f9bec69e 100644
--- a/sys/arch/arc/arc/pmap.c
+++ b/sys/arch/arc/arc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.13 1998/03/16 09:38:32 pefo Exp $ */
+/* $OpenBSD: pmap.c,v 1.14 1998/07/13 05:03:30 imp Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 8.4 (Berkeley) 1/26/94
- * $Id: pmap.c,v 1.13 1998/03/16 09:38:32 pefo Exp $
+ * $Id: pmap.c,v 1.14 1998/07/13 05:03:30 imp Exp $
*/
/*
@@ -170,12 +170,13 @@ struct {
#define PDB_WIRING 0x4000
#define PDB_PVDUMP 0x8000
-extern int kernel_text[];
-extern int _end[];
int pmapdebug = 0x0;
#endif /* DEBUG */
+extern int kernel_text[];
+extern int _end[];
+
struct pmap kernel_pmap_store;
vm_offset_t avail_start; /* PA of first available physical page */
@@ -1001,7 +1002,9 @@ pmap_enter(pmap, va, pa, prot, wired)
{
register pt_entry_t *pte;
register u_int npte;
+#ifdef DIAGNOSTIC
register int i;
+#endif
vm_page_t mem;
#ifdef DEBUG