From 10b31e1ebce5873351887b83ab39bdfe56571999 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 14 Nov 2000 18:01:54 +0000 Subject: [PATCH] The i386 page size is fixed -- override PAGE_SIZE, et al, so that they are compile-time constants. --- sys/arch/i386/include/vmparam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h index d80286b5af03..12881ecbc83a 100644 --- a/sys/arch/i386/include/vmparam.h +++ b/sys/arch/i386/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.38 2000/11/09 17:34:52 kim Exp $ */ +/* $NetBSD: vmparam.h,v 1.39 2000/11/14 18:01:54 thorpej Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -45,6 +45,14 @@ * Machine dependent constants for 386. */ +/* + * Page size on the IA-32 is not variable in the traditional sense. + * We override the PAGE_* definitions to compile-time constants. + */ +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SIZE - 1) + /* * Virtual address space arrangement. On 386, both user and kernel * share the address space, not unlike the vax.