Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/include Expose kernel variables only to kernel.



details:   https://anonhg.NetBSD.org/src/rev/5406e923ac84
branches:  trunk
changeset: 449897:5406e923ac84
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 28 08:28:16 2019 +0000

description:
Expose kernel variables only to kernel.
XXX: move this variable somewhere better?

diffstat:

 sys/arch/arc/include/vmparam.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6ca4c16a87bc -r 5406e923ac84 sys/arch/arc/include/vmparam.h
--- a/sys/arch/arc/include/vmparam.h    Thu Mar 28 08:13:40 2019 +0000
+++ b/sys/arch/arc/include/vmparam.h    Thu Mar 28 08:28:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.10 2009/12/16 23:19:06 matt Exp $        */
+/*     $NetBSD: vmparam.h,v 1.11 2019/03/28 08:28:16 christos Exp $    */
 /*     $OpenBSD: vmparam.h,v 1.3 1997/04/19 17:19:59 pefo Exp $        */
 /*     NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp     */
 
@@ -19,6 +19,7 @@
 
 #ifndef KSEG2IOBUFSIZE
 #define KSEG2IOBUFSIZE kseg2iobufsize  /* reserve PTEs for KSEG2 I/O space */
-
+#ifdef _KERNEL
 extern vsize_t kseg2iobufsize;
 #endif
+#endif



Home | Main Index | Thread Index | Old Index