Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include _KMEMUSER only needs struct cpu_info



details:   https://anonhg.NetBSD.org/src/rev/e483fac2b525
branches:  trunk
changeset: 337089:e483fac2b525
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Apr 01 21:55:03 2015 +0000

description:
_KMEMUSER only needs struct cpu_info

diffstat:

 sys/arch/riscv/include/cpu.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 3a6b2357cf23 -r e483fac2b525 sys/arch/riscv/include/cpu.h
--- a/sys/arch/riscv/include/cpu.h      Wed Apr 01 20:18:17 2015 +0000
+++ b/sys/arch/riscv/include/cpu.h      Wed Apr 01 21:55:03 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.3 2015/03/31 01:11:41 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.4 2015/04/01 21:55:03 matt Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,6 +33,7 @@
 #define _RISCV_CPU_H_
 
 #if defined(_KERNEL) || defined(_KMEMUSER)
+
 struct clockframe {
        uintptr_t cf_pc;
        uint32_t cf_sr;
@@ -79,6 +80,10 @@
        struct evcnt ci_ev_fpu_reenables;
 };
 
+#endif /* _KERNEL || _KMEMUSER */
+
+#ifdef _KERNEL
+
 extern struct cpu_info cpu_info_store;
 
 // This is also in <sys/lwp.h>
@@ -141,6 +146,6 @@
 {
 }
 
-#endif /* _KERNEL || _KMEMUSER */
+#endif /* _KERNEL */
 
 #endif /* _RISCV_CPU_H_ */



Home | Main Index | Thread Index | Old Index