diff options
Diffstat (limited to 'sys/powerpc/include/bat.h')
-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 |