Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/ews4800mips/include protect kernel variable from us...



details:   https://anonhg.NetBSD.org/src/rev/afd2145856cb
branches:  trunk
changeset: 997829:afd2145856cb
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 28 08:31:40 2019 +0000

description:
protect kernel variable from userland exposure
XXX: if there a better place for this?

diffstat:

 sys/arch/ews4800mips/include/vmparam.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 05a04eb1a0a1 -r afd2145856cb sys/arch/ews4800mips/include/vmparam.h
--- a/sys/arch/ews4800mips/include/vmparam.h    Thu Mar 28 08:28:16 2019 +0000
+++ b/sys/arch/ews4800mips/include/vmparam.h    Thu Mar 28 08:31:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.2 2009/12/14 00:46:03 matt Exp $ */
+/*     $NetBSD: vmparam.h,v 1.3 2019/03/28 08:31:40 christos Exp $     */
 
 #ifndef _EWS4800MIPS_VMPARAM_H_
 #define _EWS4800MIPS_VMPARAM_H_
@@ -18,6 +18,8 @@
 /* reserve PTEs for KSEG2 I/O space */
 #define KSEG2IOBUFSIZE         kseg2iobufsize
 #endif
+#ifdef _KERNEL
 extern vsize_t kseg2iobufsize;
+#endif
 
 #endif /* !_EWS4800MIPS_VMPARAM_H_ */



Home | Main Index | Thread Index | Old Index