summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-10-06 20:18:55 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-10-06 20:18:55 +0000
commit27b40dde86fd21b8d58efd3eb2c202dc0f7506b3 (patch)
treeb1e1008b83633ad864232e8fd7a447251ab418c7 /sys/arch
parentf1ebb7ab50f3e24f5588c3bb6b198c3a48f01016 (diff)
Declare nbuf just like all other architectures.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index ddf79f9c508..207fe4e8859 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.47 2002/07/20 19:24:57 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.48 2002/10/06 20:18:54 art Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -149,6 +149,15 @@ int bus_space_debug = 0; /* This may be used by macros elsewhere. */
struct vm_map *exec_map = NULL;
extern vaddr_t avail_end;
+/*
+ * Declare these as initialized data so we can patch them.
+ */
+#ifdef NBUF
+int nbuf = NBUF;
+#else
+int nbuf = 0;
+#endif
+
#ifndef BUFCACHEPERCENT
#define BUFCACHEPERCENT 5
#endif