From 186d9e105e69468d207be7f2aab578939ecc9640 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 14 Nov 2000 19:03:22 +0000 Subject: [PATCH] We use 4K pages on the hp300. Make PAGE_SIZE and friends compile-time constants. --- sys/arch/hp300/include/vmparam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/hp300/include/vmparam.h b/sys/arch/hp300/include/vmparam.h index b2b67fb52e2c..1ff524aa1211 100644 --- a/sys/arch/hp300/include/vmparam.h +++ b/sys/arch/hp300/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.21 2000/02/11 19:25:15 thorpej Exp $ */ +/* $NetBSD: vmparam.h,v 1.22 2000/11/14 19:03:22 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -49,6 +49,14 @@ * Machine dependent constants for HP300 */ +/* + * We use 4K pages on the hp300. Override the PAGE_* definitions + * to be compile-time constants. + */ +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SIZE - 1) + /* * USRTEXT is the start of the user text/data space, while USRSTACK * is the top (end) of the user stack. LOWPAGES and HIGHPAGES are