From: Ian Campbell Subject: Re: [PATCH 04/14] xen: arm: support for loading 64-bit zImage dom0 Date: Wed, 10 Apr 2013 12:52:12 +0100 Message-ID: <1365594732.27868.10.camel@zakaz.uk.xensource.com> References: <1363100034.8941.204.camel@hastur.hellion.org.uk> <1363103329-23478-4-git-send-email-ijc@hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: "Tim (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-04-08 at 12:24 +0100, Stefano Stabellini wrote: > On Tue, 12 Mar 2013, Ian Campbell wrote: > > +static int kernel_try_zimage64_prepare(struct kernel_info *info, > > + paddr_t addr, paddr_t size) > > +{ > this function doesn't seem very different from kernel_try_elf_prepare: > do we really need two of them? The 32- and 64-bit zImage formats are completely different, different header fields/offsets different magic numbers etc. I thnk two functions is the way to go.