summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2008-01-09 13:59:43 +0000
committerhe <he@NetBSD.org>2008-01-09 13:59:43 +0000
commit7d83a06dfc0d0a8c7138fa1879976d9e02dd24f8 (patch)
treeada23aa15e05bb77b66a35c52e636cee2ebcaece
parente6599f15b0a04fd66b809774bf22e9efe71713f7 (diff)
Declare nbpg if we're building for sparc, and initialize to the
smallest sparc pagesize. This should deal with the IOCPARM_MAX build problem, which occurs on sparc because various models have different page size, so it's run-time determined instead. pooka says that rump doesn't use ioctl(), so the value is apparently of no consequence.
-rw-r--r--sys/rump/librump/rumpkern/misc_stub.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/rump/librump/rumpkern/misc_stub.c b/sys/rump/librump/rumpkern/misc_stub.c
index 8256b5b4953..d0f3b898f5c 100644
--- a/sys/rump/librump/rumpkern/misc_stub.c
+++ b/sys/rump/librump/rumpkern/misc_stub.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc_stub.c,v 1.4 2008/01/07 16:12:56 ad Exp $ */
+/* $NetBSD: misc_stub.c,v 1.5 2008/01/09 13:59:43 he Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -33,6 +33,14 @@
#include <sys/sysctl.h>
#include <sys/systm.h>
+#ifdef __sparc__
+ /*
+ * XXX Least common denominator - smallest sparc pagesize.
+ * Could just be declared, pooka says rump doesn't use ioctl.
+ */
+int nbpg = 4096;
+#endif
+
void
preempt()
{