Module Name:    src
Committed By:   matt
Date:           Wed Apr  1 21:55:03 UTC 2015

Modified Files:
        src/sys/arch/riscv/include: cpu.h

Log Message:
_KMEMUSER only needs struct cpu_info


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/riscv/include/cpu.h
diff -u src/sys/arch/riscv/include/cpu.h:1.3 src/sys/arch/riscv/include/cpu.h:1.4
--- src/sys/arch/riscv/include/cpu.h:1.3	Tue Mar 31 01:11:41 2015
+++ src/sys/arch/riscv/include/cpu.h	Wed Apr  1 21:55:03 2015
@@ -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 cpu_info {
 	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 @@ cpu_idle(void)
 {
 }
 
-#endif /* _KERNEL || _KMEMUSER */
+#endif /* _KERNEL */
 
 #endif /* _RISCV_CPU_H_ */

Reply via email to