summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-27 16:25:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-27 16:25:33 +0000
commita606a0cbc608fba266fc76044d2cfd795db58e42 (patch)
tree0b2853def92c0af64d2ab5b350ea654eb41c0b42
parent3b5b9efcffa6504ba1fdaf70480bdf9a89e5c502 (diff)
define PAGE_SIZE and friends, 4K kernel size reduction and probable speed increase; art
-rw-r--r--sys/arch/i386/include/param.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h
index 86f6af5ee58..eedfe26d667 100644
--- a/sys/arch/i386/include/param.h
+++ b/sys/arch/i386/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.8 1999/09/20 17:06:00 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.9 1999/11/27 16:25:32 deraadt Exp $ */
/* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */
/*-
@@ -68,6 +68,11 @@
#define PGSHIFT 12 /* LOG2(NBPG) */
#define NBPG (1 << PGSHIFT) /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
+
+#define PAGE_SHIFT 12
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SIZE - 1)
+
#define NPTEPG (NBPG/(sizeof (pt_entry_t)))
#define KERNBASE 0xe0000000 /* start of kernel virtual space */