From f74dfc775508748c6f335f6b498deb5b62477ecc Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 14 Nov 2000 18:58:29 +0000 Subject: [PATCH] We use 8K pages on the Amiga. Make PAGE_SIZE and friends into compile-time constants. --- sys/arch/amiga/include/vmparam.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/arch/amiga/include/vmparam.h b/sys/arch/amiga/include/vmparam.h index 15f5bb1be5ff..3f061e4232b0 100644 --- a/sys/arch/amiga/include/vmparam.h +++ b/sys/arch/amiga/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.26 2000/02/14 20:23:20 is Exp $ */ +/* $NetBSD: vmparam.h,v 1.27 2000/11/14 18:58:29 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -49,6 +49,15 @@ /* * Machine dependent constants for HP300 */ + +/* + * We use 8K pages on the Amiga. Override the PAGE_* definitions + * to be compie-time constants. + */ +#define PAGE_SHIFT 13 +#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