Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/include Reduce exposure of kernel internals for...



details:   https://anonhg.NetBSD.org/src/rev/a71d60688f23
branches:  trunk
changeset: 770775:a71d60688f23
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Nov 01 21:21:32 2011 +0000

description:
Reduce exposure of kernel internals for __KMEMUSER

diffstat:

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

diffs (31 lines):

diff -r 325067db41d8 -r a71d60688f23 sys/arch/x86/include/cpu.h
--- a/sys/arch/x86/include/cpu.h        Tue Nov 01 21:16:28 2011 +0000
+++ b/sys/arch/x86/include/cpu.h        Tue Nov 01 21:21:32 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.39 2011/10/17 22:38:01 jmcneill Exp $        */
+/*     $NetBSD: cpu.h,v 1.40 2011/11/01 21:21:32 joerg Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -274,6 +274,9 @@
 #define        CPUF_PAUSE      0x4000          /* CPU is paused in DDB */
 #define        CPUF_GO         0x8000          /* CPU should start running */
 
+#endif /* _KERNEL || __KMEMUSER */
+
+#ifdef _KERNEL
 /*
  * We statically allocate the CPU info for the primary CPU (or,
  * the only CPU on uniprocessors), and the primary CPU is the
@@ -454,8 +457,10 @@
 void x86_bus_space_init(void);
 void x86_bus_space_mallocok(void);
 
+#endif /* _KERNEL */
+
+#if defined(_KERNEL) || defined(_KMEMUSER)
 #include <machine/psl.h>       /* Must be after struct cpu_info declaration */
-
 #endif /* _KERNEL || __KMEMUSER */
 
 /*



Home | Main Index | Thread Index | Old Index