Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include Only include kernel headers if _KER...



details:   https://anonhg.NetBSD.org/src/rev/22228faddd70
branches:  trunk
changeset: 542862:22228faddd70
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Feb 10 04:01:37 2003 +0000

description:
Only include kernel headers if _KERNEL is defined.

diffstat:

 sys/arch/powerpc/include/cpu.h |  20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r 43a3ef9ce837 -r 22228faddd70 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Mon Feb 10 02:24:27 2003 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Mon Feb 10 04:01:37 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.26 2003/02/03 17:10:01 matt Exp $    */
+/*     $NetBSD: cpu.h,v 1.27 2003/02/10 04:01:37 matt Exp $    */
 
 /*
  * Copyright (C) 1999 Wolfgang Solfrank.
@@ -35,6 +35,14 @@
 #ifndef        _POWERPC_CPU_H_
 #define        _POWERPC_CPU_H_
 
+struct cache_info {
+       int dcache_size;
+       int dcache_line_size;
+       int icache_size;
+       int icache_line_size;
+};
+
+#ifdef _KERNEL
 #if defined(_KERNEL_OPT)
 #include "opt_lockdebug.h"
 #include "opt_multiprocessor.h"
@@ -46,16 +54,6 @@
 #include <machine/intr.h>
 #include <sys/device.h>
 
-
-struct cache_info {
-       int dcache_size;
-       int dcache_line_size;
-       int icache_size;
-       int icache_line_size;
-};
-
-
-#ifdef _KERNEL
 #include <sys/sched.h>
 #include <dev/sysmon/sysmonvar.h>
 



Home | Main Index | Thread Index | Old Index