From 50659edcb78c07afb256ad261e58d446255bb189 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 1 Apr 2003 15:33:48 +0000 Subject: [PATCH] Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK a compile-time constant on Sun2. --- sys/arch/sun2/include/vmparam.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/arch/sun2/include/vmparam.h b/sys/arch/sun2/include/vmparam.h index 9a02142d96bd..ca4beddc6792 100644 --- a/sys/arch/sun2/include/vmparam.h +++ b/sys/arch/sun2/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.8 2002/12/10 05:14:35 thorpej Exp $ */ +/* $NetBSD: vmparam.h,v 1.9 2003/04/01 15:33:48 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -45,6 +45,13 @@ * and those things should be chosen to conserve KV space. */ +/* + * The Sun2 has 2K pages. Override PAGE_* to be compile-time constants. + */ +#define PAGE_SHIFT 11 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SIZE - 1) + /* * We definitely need a small pager map. */