From: "Jan Beulich" Subject: Re: [PATCH V5 02/15] Move x86 specific funtions/variables to arch header Date: Wed, 24 Sep 2014 09:12:10 +0100 Message-ID: <542298FA02000078000380E0@mail.emea.novell.com> References: <1411080607-32365-1-git-send-email-roy.franz@linaro.org> <1411080607-32365-3-git-send-email-roy.franz@linaro.org> <542038090200007800036F13@mail.emea.novell.com> <5421828D0200007800037982@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 04:35, wrote: > On Tue, Sep 23, 2014 at 5:24 AM, Jan Beulich wrote: >>>>> On 23.09.14 at 04:08, wrote: >>> extern l4_pgentry_t *efi_l4_pgtable; >>> maybe should be moved back to boot.c for now, but this is an x86 >>> specific structure that is only referenced there due to the >>> runtime code being #ifdef'ed out. >> >> It's currently being declared in xen/arch/x86/efi/efi.h, and I >> can't really see why this isn't sufficient. > > xen/arch/x86/efi/efi.h is a link to common/efi/efi.h, so it is a shared > header. I could put it there with #ifdef, or leave it the the architecture > specific header file. Following the as-private-as-possible model going the #ifdef route seems better to me even if resulting in slightly more ugly code. Jan