From 7d83a06dfc0d0a8c7138fa1879976d9e02dd24f8 Mon Sep 17 00:00:00 2001 From: he Date: Wed, 9 Jan 2008 13:59:43 +0000 Subject: [PATCH] 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. --- sys/rump/librump/rumpkern/misc_stub.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/rump/librump/rumpkern/misc_stub.c b/sys/rump/librump/rumpkern/misc_stub.c index 8256b5b4953f..d0f3b898f5ce 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 #include +#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() {