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/d40a193b897c
branches:  trunk
changeset: 449898:d40a193b897c
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 5406e923ac84 -r d40a193b897c 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