Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/include Don't expose kernel structs to userland.



details:   https://anonhg.NetBSD.org/src/rev/150a76c78d88
branches:  trunk
changeset: 813372:150a76c78d88
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 25 18:14:40 2016 +0000

description:
Don't expose kernel structs to userland.

diffstat:

 sys/arch/hppa/include/cpu.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r b5d19c542387 -r 150a76c78d88 sys/arch/hppa/include/cpu.h
--- a/sys/arch/hppa/include/cpu.h       Mon Jan 25 18:14:04 2016 +0000
+++ b/sys/arch/hppa/include/cpu.h       Mon Jan 25 18:14:40 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.2 2014/03/06 19:02:58 skrll Exp $    */
+/*     $NetBSD: cpu.h,v 1.3 2016/01/25 18:14:40 christos Exp $ */
 
 /*     $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $       */
 
@@ -86,6 +86,7 @@
        mako    /* PA8800 (mako)        PA 2.0 */
 };
 
+#ifdef _KERNEL
 /*
  * A CPU description.
  */
@@ -116,7 +117,6 @@
        int (*hptinit)(vaddr_t, vsize_t);
 };
 
-#ifdef _KERNEL
 extern const struct hppa_cpu_info *hppa_cpu_info;
 extern int cpu_modelno;
 extern int cpu_revision;



Home | Main Index | Thread Index | Old Index