From e369cca9f78895427473fa5ad0557f0bc93685f0 Mon Sep 17 00:00:00 2001 From: art Date: Wed, 15 Mar 2000 14:17:48 +0000 Subject: [PATCH] Don't allow the PAGE_SIZE macros to be exported to userland. --- sys/vm/vm_param.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h index 0d7a533ae91..b987b40838e 100644 --- a/sys/vm/vm_param.h +++ b/sys/vm/vm_param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_param.h,v 1.18 1999/12/30 18:21:56 provos Exp $ */ +/* $OpenBSD: vm_param.h,v 1.19 2000/03/15 14:17:48 art Exp $ */ /* $NetBSD: vm_param.h,v 1.12 1995/03/26 20:39:16 jtc Exp $ */ /* @@ -91,6 +91,7 @@ typedef int boolean_t; */ #define DEFAULT_PAGE_SIZE 4096 +#ifdef _KERNEL /* * All references to the size of a page should be done with PAGE_SIZE * or PAGE_SHIFT. @@ -112,8 +113,9 @@ typedef int boolean_t; #define PAGE_SIZE cnt.v_page_size /* size of page */ #define PAGE_MASK page_mask /* size of page - 1 */ #define PAGE_SHIFT page_shift /* bits to shift for pages */ -#endif +#endif /* UVM */ #endif /* !PAGE_SIZE */ +#endif /* _KERNEL */ #if defined(_KERNEL) && !defined(UVM) extern vsize_t page_mask; -- 2.20.1