From: "Jan Beulich" Subject: Re: [PATCH for-4.5 V6 02/14] Move x86 specific funtions/variables to arch header Date: Thu, 25 Sep 2014 09:12:19 +0100 Message-ID: <5423EA830200007800038C2F@mail.emea.novell.com> References: <1411534992-27443-1-git-send-email-roy.franz@linaro.org> <1411534992-27443-3-git-send-email-roy.franz@linaro.org> <542305B30200007800038768@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> On 24.09.14 at 21:45, wrote: > On Wed, Sep 24, 2014 at 8:56 AM, Jan Beulich wrote: >>>>> On 24.09.14 at 07:03, wrote: >>> --- /dev/null >>> +++ b/xen/arch/x86/efi/efi-boot.h >>> @@ -0,0 +1,132 @@ >>> +/* >>> + * Architecture specific implementation for EFI boot code. This file >>> + * is intended to be included by common/efi/boot.c _only_, and >>> + * therefore can define arch specific global variables. >>> + */ >>> +#include >>> +#include >>> +#define __ASSEMBLY__ /* avoid pulling in ACPI stuff (conflicts with EFI) */ >>> +#include >>> +#undef __ASSEMBLY__ >> >> Just noticed this: Moving this here makes things even more fragile >> than they are now: If asm/fixmap.h happens to be included by any >> other header processed prior to reaching this point, the whole effect >> will be gone. Please keep this in the original place (with an #ifdef >> and comment as to why). >> >> With that adjusted >> Acked-by: Jan Beulich > > OK, I'll move that. Just to clarify, it's just the > >>> +#define __ASSEMBLY__ /* avoid pulling in ACPI stuff (conflicts with EFI) */ >>> +#include >>> +#undef __ASSEMBLY__ > > that should be moved. Yes. Jan