From 0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Fri, 19 Jan 2007 11:15:34 +0000 Subject: Convert the remainder of the low hanging fruits regarding including headers in .S directly rather than getting to their macros through genassym.c/assym.s so there are less headers genassym.c has to be kept in sync with. While at it fix some stytle(9) bugs (indentation, prototype format, sort headers, etc) and remove trailing whitespace. --- sys/sparc64/include/cache.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/sparc64/include/cache.h') diff --git a/sys/sparc64/include/cache.h b/sys/sparc64/include/cache.h index d0cf824fdd7b..94045547c600 100644 --- a/sys/sparc64/include/cache.h +++ b/sys/sparc64/include/cache.h @@ -45,7 +45,9 @@ #ifndef _MACHINE_CACHE_H_ #define _MACHINE_CACHE_H_ +#ifndef LOCORE #include +#endif #define DCACHE_COLOR_BITS (1) #define DCACHE_COLORS (1 << DCACHE_COLOR_BITS) @@ -72,6 +74,8 @@ #define IC_TAG_MASK ((1 << IC_TAG_BITS) - 1) #define IC_VALID_MASK ((1 << IC_VALID_BITS) - 1) +#ifndef LOCORE + /* * Cache control information. */ @@ -119,6 +123,8 @@ extern icache_page_inval_t *icache_page_inval; extern struct cacheinfo cache; -#endif +#endif /* KERNEL */ + +#endif /* !LOCORE */ -#endif /* !_MACHINE_CACHE_H_ */ +#endif /* !_MACHINE_CACHE_H_ */ -- cgit v1.2.3