head	1.6;
access;
symbols
	perseant-exfatfs-base-20250801:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.46
	perseant-exfatfs-base:1.4
	bouyer-sunxi-drm:1.4.0.44
	bouyer-sunxi-drm-base:1.4
	cjep_sun2x:1.4.0.42
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	cjep_staticlib_x:1.4.0.40
	cjep_staticlib_x-base:1.4
	thorpej-futex-base:1.4
	bouyer-xenpvh-base2:1.4
	phil-wifi-20200421:1.4
	bouyer-xenpvh-base1:1.4
	phil-wifi-20200411:1.4
	bouyer-xenpvh:1.4.0.38
	bouyer-xenpvh-base:1.4
	phil-wifi-20200406:1.4
	ad-namecache-base3:1.4
	ad-namecache-base2:1.4
	ad-namecache-base1:1.4
	ad-namecache:1.4.0.36
	ad-namecache-base:1.4
	isaki-audio2:1.4.0.34
	isaki-audio2-base:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	pgoyette-compat-0728:1.4
	pgoyette-compat-0625:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	pgoyette-compat:1.4.0.32
	pgoyette-compat-base:1.4
	perseant-stdc-iso10646:1.4.0.30
	perseant-stdc-iso10646-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.28
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount-20170320:1.4
	bouyer-socketcan:1.4.0.26
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	pgoyette-localcount-20161104:1.4
	localcount-20160914:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.24
	pgoyette-localcount-base:1.4
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.4
	tls-earlyentropy:1.4.0.22
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	rmind-smpnet-nbase:1.4
	rmind-smpnet:1.4.0.18
	rmind-smpnet-base:1.4
	agc-symver:1.4.0.20
	agc-symver-base:1.4
	tls-maxphys-base:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.3.0.18
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	yamt-pagecache-base6:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	jmcneill-usbmp:1.4.0.16
	jmcneill-usbmp-base:1.4
	jmcneill-audiomp3:1.4.0.14
	jmcneill-audiomp3-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.12
	yamt-pagecache-base:1.4
	rmind-uvmplock-nbase:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.10
	bouyer-quota2-base:1.4
	jruoho-x86intr:1.4.0.8
	jruoho-x86intr-base:1.4
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.16
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.14
	netbsd-5-1-RELEASE:1.3
	yamt-nfs-mp-base11:1.4
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	uebayasi-xip-base2:1.4
	yamt-nfs-mp-base10:1.4
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	netbsd-5-1-RC1:1.3
	rmind-uvmplock:1.4.0.6
	rmind-uvmplock-base:1.4
	yamt-nfs-mp-base9:1.4
	uebayasi-xip:1.4.0.4
	uebayasi-xip-base:1.4
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	yamt-nfs-mp-base8:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	yamt-nfs-mp-base7:1.4
	matt-nb5-mips64:1.3.0.12
	netbsd-5-0-1-RELEASE:1.3
	jymxensuspend-base:1.4
	yamt-nfs-mp-base6:1.4
	yamt-nfs-mp-base5:1.4
	yamt-nfs-mp-base4:1.4
	jym-xensuspend-nbase:1.4
	yamt-nfs-mp-base3:1.4
	netbsd-5-0:1.3.0.10
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.4.0.2
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.3
	haad-dm-base:1.4
	haad-dm-base2:1.4
	haad-nbase2:1.4
	ad-audiomp2:1.3.0.8
	ad-audiomp2-base:1.3
	netbsd-5:1.3.0.6
	netbsd-5-base:1.3
	nick-hppapmap:1.3.0.4
	nick-hppapmap-base:1.3
	matt-mips64-base2:1.3
	haad-dm:1.3.0.2
	haad-dm-base1:1.3
	wrstuden-revivesa-base-4:1.2
	mjf-devfs2-base:1.4
	mjf-devfs2:1.1.0.6
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa:1.1.0.4
	wrstuden-revivesa-base-2:1.1
	simonb-wapbl-base:1.1
	simonb-wapbl:1.1.0.2
	simonb-wapbl-nbase:1.1;
locks; strict;
comment	@ * @;


1.6
date	2026.05.04.19.31.46;	author thorpej;	state Exp;
branches;
next	1.5;
commitid	mAceggvfKItT3xEG;

1.5
date	2026.05.03.17.17.22;	author thorpej;	state Exp;
branches;
next	1.4;
commitid	YWLWmPLQ8faikoEG;

1.4
date	2008.12.08.12.57.33;	author pooka;	state dead;
branches;
next	1.3;

1.3
date	2008.10.16.22.05.12;	author pooka;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	2008.10.09.12.34.36;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2008.07.28.18.12.15;	author pooka;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1;
next	;

1.3.2.1
date	2008.10.16.22.05.12;	author haad;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2008.10.19.22.18.06;	author haad;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2008.12.13.01.15.34;	author haad;	state dead;
branches;
next	;

1.3.4.1
date	2009.01.19.13.20.25;	author skrll;	state dead;
branches;
next	;

1.1.2.1
date	2008.07.28.18.12.15;	author simonb;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2008.07.31.04.51.05;	author simonb;	state Exp;
branches;
next	;

1.1.4.1
date	2008.07.28.18.12.15;	author wrstuden;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2008.09.18.04.37.04;	author wrstuden;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	2008.10.10.22.36.16;	author skrll;	state Exp;
branches;
next	;

1.1.6.1
date	2008.07.28.18.12.15;	author mjf;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2008.09.28.10.41.03;	author mjf;	state Exp;
branches;
next	1.1.6.3;

1.1.6.3
date	2009.01.17.13.29.35;	author mjf;	state dead;
branches;
next	;


desc
@@


1.6
log
@Fix MIN_PAGE_SHIFT for LP64 platforms that happen to use tiny mbufs.
@
text
@/*	$NetBSD: vmparam.h,v 1.5 2026/05/03 17:17:22 thorpej Exp $	*/

/*
 * Dummy <machine/vmparam.h> for rump.
 *
 * Written by Jason R. Thorpe, May 1, 2026.
 * Public domain.
 */

#ifndef _SYS_RUMP_VMPARAM_H_
#define	_SYS_RUMP_VMPARAM_H_

/*
 * We have VM page sizes ranging from 2K to 16K.
 *
 * Note that mbufs use MIN_PAGE_SHIFT to calculate the number of
 * external pages that can be associated with an M_EXT mbuf.  On
 * LP64 platforms we can easily get into trouble and overflow the
 * required space (within MSIZE) because pointers are 8 bytes.
 * If a platform has a 256-byte MSIZE, then MIN_PAGE_SIZE must be
 * at least 8K.  And we know this is true because the compile-time
 * asserts pass when building the kernel on those platforms.  If
 * the platform's MSIZE is 512 (as it is on amd64, for example),
 * then a 4K page size is OK.
 */
#ifdef _LP64
#define	MIN_PAGE_SHIFT		(12 + (MSIZE == 256))
#else
#define	MIN_PAGE_SHIFT		11
#endif
#define	MAX_PAGE_SHIFT		14
#define	MIN_PAGE_SIZE		(1 << MIN_PAGE_SHIFT)
#define	MAX_PAGE_SIZE		(1 << MAX_PAGE_SHIFT)

/*
 * 16MB ought to be enough for anybody, really.  Especially
 * considering that user-space doesn't really exist in RUMP.
 */
#define	VM_MIN_ADDRESS		((vaddr_t)0)
#define	VM_MAX_ADDRESS		((vaddr_t)0x01000000)
#define	VM_MAXUSER_ADDRESS	VM_MAX_ADDRESS

/*
 * Stack starts at the top of the user's address space.
 */
#define	USRSTACK		VM_MAX_ADDRESS

/*
 * Resource limits that are incredibly generous for a
 * non-existent user-space.
 */
#define	MAXTSIZ			(5*1024*1024)
#define	DFLDSIZ			(4*1024*1024)
#define	MAXDSIZ			(6*1024*1024)
#define	DFLSSIZ			(512*1024)
#define	MAXSSIZ			(4*1024*1024)

/*
 * The RUMP virtual machine has one physical memory segment and
 * one page free list.
 */
#define	VM_PHYSSEG_MAX		1
#define	VM_PHYSSEG_STRAT	VM_PSTRAT_BSEARCH

#define	VM_NFREELIST		1
#define	VM_FREELIST_DEFAULT	0

#endif /* _SYS_RUMP_VMPARAM_H_ */
@


1.5
log
@Despite pooka's dislike of the situation, it is sometimes unavoidable
that systems within a given $MACHINE may have different vmparams.

Furthermore, rump is fundamentally a user-space entity on NetBSD, and
it's absolutely true that different $MACHINEs within a $MACHINE_ARCH
may legitimately have different vmparams related to physical memory
layout, and so using the real <machine/vmparams.h> is an impediment
to a $MACHINE_ARCH-generic user-space build.

As such, rump once again has its own vmparams.h file with values that
should be perfectly adequate for the rump virtual environment and its
non-existent subordinate user-space.
@
text
@d1 1
a1 1
/*	$NetBSD$	*/
d15 14
a28 1
 */
d30 1
@


1.4
log
@Instead of punishing all archs for a fake vmparam.h, punish only
evbppc for its insolence and pick a ppc cpu family at random in
Makefile.rump.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.3 2008/10/16 22:05:12 pooka Exp $	*/
d4 1
a4 1
 * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
d6 2
a7 20
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
d11 39
a49 1
#define _SYS_RUMP_VMPARAM_H_
d51 2
a52 7
#define PAGE_SHIFT		13
#define PAGE_SIZE		(1 << PAGE_SHIFT)
#define PAGE_MASK		(PAGE_SIZE - 1)

#define VM_PHYSSEG_MAX		1
#define VM_NFREELIST		1
#define VM_FREELIST_DEFAULT     0
@


1.3
log
@Alpha requires 8k pages for mbuf size calculation to work (maybe
sparc64 too?).  Make it so.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.2 2008/10/09 12:34:36 pooka Exp $	*/
@


1.3.4.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.3 2008/10/16 22:05:12 pooka Exp $	*/
@


1.3.2.1
log
@file vmparam.h was added on branch haad-dm on 2008-10-19 22:18:06 +0000
@
text
@d1 39
@


1.3.2.2
log
@Sync with HEAD.
@
text
@a0 39
/*	$NetBSD: vmparam.h,v 1.3 2008/10/16 22:05:12 pooka Exp $	*/

/*
 * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _SYS_RUMP_VMPARAM_H_
#define _SYS_RUMP_VMPARAM_H_

#define PAGE_SHIFT		13
#define PAGE_SIZE		(1 << PAGE_SHIFT)
#define PAGE_MASK		(PAGE_SIZE - 1)

#define VM_PHYSSEG_MAX		1
#define VM_NFREELIST		1
#define VM_FREELIST_DEFAULT     0

#endif /* _SYS_RUMP_VMPARAM_H_ */
@


1.3.2.3
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.3.2.2 2008/10/19 22:18:06 haad Exp $	*/
@


1.2
log
@Bump virtual page shift from 10 to 12.  Otherwise the mbuf generating
macros fail to operate properly due to M_EXT_MAXPAGES being too
large and hence struct _m_ext being over MSIZE already by itself.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.1 2008/07/28 18:12:15 pooka Exp $	*/
d31 1
a31 1
#define PAGE_SHIFT		12
@


1.1
log
@Give rump a faux vmparam.h to work around problematic ports (hooray
for evbppc).  Obligatory inlined rant: it would be really nice if
we didn't have weird ports like that which sport totally incompatible
code for different kernels.
@
text
@d1 1
a1 1
/*	$NetBSD$	*/
d31 1
a31 1
#define PAGE_SHIFT		10
@


1.1.6.1
log
@file vmparam.h was added on branch mjf-devfs2 on 2008-09-28 10:41:03 +0000
@
text
@d1 39
@


1.1.6.2
log
@Sync with HEAD.
@
text
@a0 39
/*	$NetBSD$	*/

/*
 * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _SYS_RUMP_VMPARAM_H_
#define _SYS_RUMP_VMPARAM_H_

#define PAGE_SHIFT		10
#define PAGE_SIZE		(1 << PAGE_SHIFT)
#define PAGE_MASK		(PAGE_SIZE - 1)

#define VM_PHYSSEG_MAX		1
#define VM_NFREELIST		1
#define VM_FREELIST_DEFAULT     0

#endif /* _SYS_RUMP_VMPARAM_H_ */
@


1.1.6.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.1.6.2 2008/09/28 10:41:03 mjf Exp $	*/
@


1.1.4.1
log
@file vmparam.h was added on branch wrstuden-revivesa on 2008-09-18 04:37:04 +0000
@
text
@d1 39
@


1.1.4.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 39
/*	$NetBSD: vmparam.h,v 1.1 2008/07/28 18:12:15 pooka Exp $	*/

/*
 * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _SYS_RUMP_VMPARAM_H_
#define _SYS_RUMP_VMPARAM_H_

#define PAGE_SHIFT		10
#define PAGE_SIZE		(1 << PAGE_SHIFT)
#define PAGE_MASK		(PAGE_SIZE - 1)

#define VM_PHYSSEG_MAX		1
#define VM_NFREELIST		1
#define VM_FREELIST_DEFAULT     0

#endif /* _SYS_RUMP_VMPARAM_H_ */
@


1.1.4.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
/*	$NetBSD: vmparam.h,v 1.1.4.2 2008/09/18 04:37:04 wrstuden Exp $	*/
d31 1
a31 1
#define PAGE_SHIFT		12
@


1.1.2.1
log
@file vmparam.h was added on branch simonb-wapbl on 2008-07-31 04:51:05 +0000
@
text
@d1 39
@


1.1.2.2
log
@Sync with head.
@
text
@a0 39
/*	$NetBSD: vmparam.h,v 1.1 2008/07/28 18:12:15 pooka Exp $	*/

/*
 * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _SYS_RUMP_VMPARAM_H_
#define _SYS_RUMP_VMPARAM_H_

#define PAGE_SHIFT		10
#define PAGE_SIZE		(1 << PAGE_SHIFT)
#define PAGE_MASK		(PAGE_SIZE - 1)

#define VM_PHYSSEG_MAX		1
#define VM_NFREELIST		1
#define VM_FREELIST_DEFAULT     0

#endif /* _SYS_RUMP_VMPARAM_H_ */
@


