summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-11-25 08:44:07 +0000
committerart <art@openbsd.org>1999-11-25 08:44:07 +0000
commit495bb7c6e757e8db808cf0bc39af1b60be436662 (patch)
treeaddff406635c1e7df6207d4ec40c2088d917dcf0 /sys
parentAllow MD code to define PAGE_SIZE to a constant. (diff)
downloadwireguard-openbsd-495bb7c6e757e8db808cf0bc39af1b60be436662.tar.xz
wireguard-openbsd-495bb7c6e757e8db808cf0bc39af1b60be436662.zip
Update comments to reflect reality.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_param.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h
index f5e0cd5ca1d..1157595e59d 100644
--- a/sys/vm/vm_param.h
+++ b/sys/vm/vm_param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_param.h,v 1.16 1999/11/25 08:41:36 art Exp $ */
+/* $OpenBSD: vm_param.h,v 1.17 1999/11/25 08:44:07 art Exp $ */
/* $NetBSD: vm_param.h,v 1.12 1995/03/26 20:39:16 jtc Exp $ */
/*
@@ -93,10 +93,14 @@ typedef int boolean_t;
/*
* All references to the size of a page should be done with PAGE_SIZE
- * or PAGE_SHIFT. The fact they are variables is hidden here so that
- * we can easily make them constant if we so desire.
+ * or PAGE_SHIFT.
+ * We allow them to be constants in MD code, but when necessary
+ * (especially in LKMs) they will still be variables.
*/
#if !defined(PAGE_SIZE) || defined(_LKM)
+/*
+ * We undef those here to avoid problmes with LKMs.
+ */
#undef PAGE_SIZE
#undef PAGE_MASK
#undef PAGE_SHIFT