Date: Mon, 12 Nov 2012 06:15:55 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242904 - head/sys/powerpc/include Message-ID: <201211120615.qAC6FtVD066502@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211120615.qAC6FtVD066502>