int i, j, k;
/* Select relocation address. */
- e = end - reloc_size;
- xen_phys_start = e;
- bootsym(trampoline_xen_phys_start) = e;
+ xen_phys_start = end - reloc_size;
+ e = xen_phys_start + XEN_IMG_OFFSET;
+ bootsym(trampoline_xen_phys_start) = xen_phys_start;
/*
* Perform relocation to new physical address.
* data until after we have switched to the relocated pagetables!
*/
barrier();
- move_memory(e + XEN_IMG_OFFSET, XEN_IMG_OFFSET, _end - _start, 1);
+ move_memory(e, XEN_IMG_OFFSET, _end - _start, 1);
/* Walk initial pagetables, relocating page directory entries. */
pl4e = __va(__pa(idle_pg_table));