This fixes the issue where you could not use zimages. The problem was
that the program counter was not starting at the entry point in the
elf image. This patch fixes it so it does.

Signed-off-by: Jerone Young <[EMAIL PROTECTED]>
Signed-off-by: Jerone Young <[EMAIL PROTECTED]>

diff -r cc72b77132f9 xen/arch/powerpc/domain_build.c---
a/xen/arch/powerpc/domain_build.c   Wed Mar 21 18:29:49 2007 -0500
+++ b/xen/arch/powerpc/domain_build.c   Mon Jan 27 20:30:49 2031 -0600
@@ -229,7 +229,7 @@ int construct_dom0(struct domain *d,
    /* Load the dom0 kernel. */
    elf.dest = (void *)dst;
    elf_load_binary(&elf);
-    v->arch.ctxt.pc = dst - rma;
+    v->arch.ctxt.pc = dst - rma + (parms.virt_entry - parms.virt_kstart);
    dst = ALIGN_UP(dst + parms.virt_kend, PAGE_SIZE);

    /* Load the initrd. */

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to