diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2012-11-12 06:15:54 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2012-11-12 06:15:54 +0000 |
commit | 833cbe62f899a4515d6227598124dad4bdd1879b (patch) | |
tree | f0629a69d79b445944797c7b067bc2ef30528ffc /sys/powerpc | |
parent | 7efc7fb950a5fd225a540ce64a2cdba26048c02a (diff) | |
download | FreeBSD-src-833cbe62f899a4515d6227598124dad4bdd1879b.zip FreeBSD-src-833cbe62f899a4515d6227598124dad4bdd1879b.tar.gz |
Allow this file to be used in LOCORE sections of the kernel.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/bat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/include/bat.h b/sys/powerpc/include/bat.h index 27c6d5a..c674fb7 100644 --- a/sys/powerpc/include/bat.h +++ b/sys/powerpc/include/bat.h @@ -71,10 +71,12 @@ #ifndef _MACHINE_BAT_H_ #define _MACHINE_BAT_H_ +#ifndef LOCORE struct bat { u_int32_t batu; u_int32_t batl; }; +#endif /* Lower BAT bits (all but PowerPC 601): */ #define BAT_PBS 0xfffe0000 /* physical block start */ @@ -165,7 +167,7 @@ struct bat { #define BATL601(pa, size, v) \ (((pa) & BAT601_PBN) | (v) | (size)) -#ifdef _KERNEL +#if defined(_KERNEL) && !defined(LOCORE) extern struct bat battable[16]; #endif |