ia64/xen-unstable

changeset 14841:5bda20f0723d

[XEN][POWERPC] Fix dom0 boot when using built-in zImage.
We need to respect the ELF entry point.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Thu Apr 12 16:37:32 2007 -0500 (2007-04-12)
parents 879625f363ee
children f92a79e39da8
files xen/arch/powerpc/domain_build.c
line diff
     1.1 --- a/xen/arch/powerpc/domain_build.c	Thu Apr 12 13:05:04 2007 -0500
     1.2 +++ b/xen/arch/powerpc/domain_build.c	Thu Apr 12 16:37:32 2007 -0500
     1.3 @@ -229,7 +229,7 @@ int construct_dom0(struct domain *d,
     1.4      /* Load the dom0 kernel. */
     1.5      elf.dest = (void *)dst;
     1.6      elf_load_binary(&elf);
     1.7 -    v->arch.ctxt.pc = dst - rma;
     1.8 +    v->arch.ctxt.pc = dst - rma + (parms.virt_entry - parms.virt_kstart);
     1.9      dst = ALIGN_UP(dst + parms.virt_kend, PAGE_SIZE);
    1.10  
    1.11      /* Load the initrd. */