From: Daniel Kiper Subject: Re: [PATCH for-xen-4.5 v3 03/16] x86/boot/reloc: Create generic alloc and copy functions Date: Mon, 13 Oct 2014 17:00:18 +0200 Message-ID: <20141013150018.GD3460@olila.local.net-space.pl> References: <1412790736-28915-1-git-send-email-daniel.kiper@oracle.com> <1412790736-28915-4-git-send-email-daniel.kiper@oracle.com> <54365924.2060403@citrix.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 1Xdh7I-0004Bk-7J for xen-devel@lists.xenproject.org; Mon, 13 Oct 2014 15:00:56 +0000 Content-Disposition: inline In-Reply-To: <54365924.2060403@citrix.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: Andrew Cooper Cc: jgross@suse.com, keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, ross.philipson@citrix.com, roy.franz@linaro.org, ning.sun@intel.com, jbeulich@suse.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, Oct 09, 2014 at 10:45:08AM +0100, Andrew Cooper wrote: > On 08/10/14 18:52, Daniel Kiper wrote: > > Create generic alloc and copy functions. We need them to > > introduce MBD struct and multiboot2 protocol. Please > > check later patches for more details. > > > > Signed-off-by: Daniel Kiper > > copy_string() is fine, as all its uses are in terms of u32s, but why do > the other two change from pointers to u32s now? > > You could drop almost all of the casts with the reintroduction of the > void pointers. This code, after all, is only ever going to be 32bit. We need some casts in this patch but after moving to MBD there are not any casts. Daniel