[Xen-devel] [PATCH v6 02/15] x86/boot/reloc: create generic alloc and copy functions

2016-09-12 Thread Daniel Kiper
Create generic alloc and copy functions. We need separate tools for memory allocation and copy to provide multiboot2 protocol support. Signed-off-by: Daniel Kiper --- v6 - suggestions/fixes: - reduce number of casts (suggested by Andrew Cooper and Jan Beulich). v4 - suggestions/fixes:

Re: [Xen-devel] [PATCH v6 02/15] x86/boot/reloc: create generic alloc and copy functions

2016-09-19 Thread Jan Beulich
>>> On 12.09.16 at 22:18, wrote: > -multiboot_info_t __stdcall *reloc(multiboot_info_t *mbi_old, u32 trampoline) > +multiboot_info_t __stdcall *reloc(u32 mbi_old, u32 trampoline) > { > multiboot_info_t *mbi; > int i; > > alloc = trampoline; > > -mbi = reloc_mbi_struct(mbi_o