From: Daniel Kiper Subject: Re: [PATCH v2 1/5] xen/x86: Introduce MultiBoot Data (MBD) type Date: Thu, 25 Sep 2014 14:56:40 +0200 Message-ID: <20140925125640.GU3459@olila.local.net-space.pl> References: <1411579162-27503-1-git-send-email-daniel.kiper@oracle.com> <1411579162-27503-2-git-send-email-daniel.kiper@oracle.com> <5423102C.5020000@citrix.com> <5423FAE80200007800038CF6@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XX8bY-0003lS-KZ for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 12:57:04 +0000 Content-Disposition: inline In-Reply-To: <5423FAE80200007800038CF6@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, Andrew Cooper , roy.franz@linaro.org, ning.sun@intel.com, ross.philipson@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org On Thu, Sep 25, 2014 at 10:22:16AM +0100, Jan Beulich wrote: > >>> On 24.09.14 at 20:40, wrote: > > On 24/09/14 18:19, Daniel Kiper wrote: [...] > >> +typedef unsigned char u8; > >> +typedef unsigned short u16; > >> +typedef unsigned long u32; > >> +typedef unsigned long long u64; > >> + > >> +#include "../../../include/xen/compiler.h" > >> +#include "../../../include/xen/multiboot.h" > >> + > >> +#include "../../../include/asm/mbd.h" > > > > How about playing with -I for this file in the Makefile to allow > > #include and so ? > > Including these here is bogus anyway, even if for the ones above it's Hmmm... Why it is bogus? > perhaps acceptable. But expressing it to be bogus via the ../../../ > prefix is quite desirable imo. I have been thinking about that since I saw this first time. Why we could not use -I gcc option here? Could you enlighten me? > >> + > >> +/* > >> + * __HERE__ IS ENTRY POINT!!! > > > > I am still of the firm opinion that anyone capable of editing this file > > ought to know understand the _start symbol, making this comment useless. > > Indeed. We know this right now. However, I spent some time to discover this at the beginning of this work. This file is full of magic so I think that this comment helps a bit to understand what is going on. So, please do me a favor and let's leave it here. If you wish I can use lowercase and remove underscore. Additionally, I removed similar comment for __reloc() (as you requested) which does not make sense if it is prefixed with static. Daniel