Author: rpaulo
Date: Mon Nov 12 06:15:54 2012
New Revision: 242904
URL: http://svnweb.freebsd.org/changeset/base/242904

Log:
  Allow this file to be used in LOCORE sections of the kernel.

Modified:
  head/sys/powerpc/include/bat.h

Modified: head/sys/powerpc/include/bat.h
==============================================================================
--- head/sys/powerpc/include/bat.h      Mon Nov 12 00:30:40 2012        
(r242903)
+++ head/sys/powerpc/include/bat.h      Mon Nov 12 06:15:54 2012        
(r242904)
@@ -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
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to