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:
>>> 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