From 2ccc5bc00d1f906c31b545408423ebd50c1789d4 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 2 Apr 2003 00:03:49 +0000 Subject: [PATCH] Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK compile-time constants on luna68k. --- sys/arch/luna68k/include/vmparam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/luna68k/include/vmparam.h b/sys/arch/luna68k/include/vmparam.h index c78edb98b6ce..0eb9271aa8b6 100644 --- a/sys/arch/luna68k/include/vmparam.h +++ b/sys/arch/luna68k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.6 2002/12/10 05:14:29 thorpej Exp $ */ +/* $NetBSD: vmparam.h,v 1.7 2003/04/02 00:03:49 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -45,6 +45,14 @@ #ifndef _MACHINE_VMPARAM_H_ #define _MACHINE_VMPARAM_H_ +/* + * 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) + /* * USRSTACK is the top (end) of the user stack. */