Module Name: src Committed By: christos Date: Fri Nov 26 18:51:19 UTC 2010
Modified Files: src/sys/uvm: uvm_pmap.h Log Message: don't leak kernel variables to userland! To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/uvm/uvm_pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_pmap.h diff -u src/sys/uvm/uvm_pmap.h:1.33 src/sys/uvm/uvm_pmap.h:1.34 --- src/sys/uvm/uvm_pmap.h:1.33 Tue Jul 6 17:11:22 2010 +++ src/sys/uvm/uvm_pmap.h Fri Nov 26 13:51:19 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_pmap.h,v 1.33 2010/07/06 21:11:22 cegger Exp $ */ +/* $NetBSD: uvm_pmap.h,v 1.34 2010/11/26 18:51:19 christos Exp $ */ /* * Copyright (c) 1991, 1993 @@ -73,9 +73,6 @@ struct pmap; typedef struct pmap *pmap_t; -extern struct pmap *const kernel_pmap_ptr; -#define pmap_kernel() kernel_pmap_ptr - /* * Each machine dependent implementation is expected to * keep certain statistics. They may do this anyway they @@ -90,6 +87,10 @@ #ifdef _KERNEL #include <machine/pmap.h> + +extern struct pmap *const kernel_pmap_ptr; +#define pmap_kernel() kernel_pmap_ptr + #endif /*