From: "Jan Beulich" Subject: Re: [PATCH v3 1/2] xen: move perform_gunzip to common Date: Wed, 02 Sep 2015 07:57:27 -0600 Message-ID: <55E71C67020000780009F080@prv-mh.provo.novell.com> References: <1441193587-5209-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZX8Xc-0006Ni-AG for xen-devel@lists.xenproject.org; Wed, 02 Sep 2015 13:57:32 +0000 In-Reply-To: <1441193587-5209-1-git-send-email-stefano.stabellini@eu.citrix.com> 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: StefanoStabellini Cc: andrew.cooper3@citrix.com, Ian.Campbell@citrix.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 02.09.15 at 13:33, wrote: > The current gunzip code to decompress the Dom0 kernel is implemented in > inflate.c which is included by bzimage.c. > > I am looking to doing the same on ARM64 but there is quite a bit of > boilerplate definitions that I would need to import in order for > inflate.c to work correctly. > > Instead of copying/pasting the code from x86/bzimage.c, move those > definitions to a new common file, gunzip.c. Export only perform_gunzip > and gzip_check. Leave output_length where it is. > > Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich provided ... > --- a/xen/common/Makefile > +++ b/xen/common/Makefile > @@ -55,6 +55,7 @@ obj-y += vmap.o > obj-y += vsprintf.o > obj-y += wait.o > obj-y += xmalloc_tlsf.o > +obj-bin-y += gunzip.init.o ... this gets moved to its alphabetically correct place. Jan