Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm don't leak kernel variables to userland!
details: https://anonhg.NetBSD.org/src/rev/c6e0bfe7ff77
branches: trunk
changeset: 759053:c6e0bfe7ff77
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 26 18:51:19 2010 +0000
description:
don't leak kernel variables to userland!
diffstat:
sys/uvm/uvm_pmap.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 6ef9ec7a2013 -r c6e0bfe7ff77 sys/uvm/uvm_pmap.h
--- a/sys/uvm/uvm_pmap.h Fri Nov 26 18:51:03 2010 +0000
+++ b/sys/uvm/uvm_pmap.h Fri Nov 26 18:51:19 2010 +0000
@@ -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
/*
Home |
Main Index |
Thread Index |
Old Index