From fb508507540c8cfd4e0c8bba0559de09cd308479 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 14 Nov 2000 19:49:57 +0000 Subject: [PATCH] We use 4K VM pages on the VAX. Make PAGE_SIZE and friends into compile-time constants. --- sys/arch/vax/include/vmparam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/vax/include/vmparam.h b/sys/arch/vax/include/vmparam.h index e7d5534296e7..94a6763c0f19 100644 --- a/sys/arch/vax/include/vmparam.h +++ b/sys/arch/vax/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.32 2000/03/07 00:05:59 matt Exp $ */ +/* $NetBSD: vmparam.h,v 1.33 2000/11/14 19:49:57 thorpej Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -46,6 +46,14 @@ * Machine dependent constants for VAX. */ +/* + * We use 4K VM pages on the VAX. 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. Immediately above the user stack