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.
This commit is contained in:
he 2008-01-09 13:59:43 +00:00
parent e6599f15b0
commit 7d83a06dfc

View File

@ -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()
{