diff options
author | Marius Strobl <marius@FreeBSD.org> | 2007-01-19 11:15:34 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2007-01-19 11:15:34 +0000 |
commit | 0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f (patch) | |
tree | 2081798bc33b8d901626e55700e1b4e8b3beb0dd /sys/sparc64/include/cache.h | |
parent | 7e2ff8bbff073b8f2d10ad9d4f1929e66f16395d (diff) |
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.
Notes
Notes:
svn path=/head/; revision=166105
Diffstat (limited to 'sys/sparc64/include/cache.h')
-rw-r--r-- | sys/sparc64/include/cache.h | 10 |
1 files changed, 8 insertions, 2 deletions
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 <dev/ofw/openfirm.h> +#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_ */ |