[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [PATCH] Fix so now can use Zimages again


  • To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Jerone Young" <jerone@xxxxxxxxx>
  • Date: Mon, 2 Apr 2007 15:57:02 -0500
  • Delivery-date: Mon, 02 Apr 2007 13:55:43 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=buh5Dz4KcvpwEaGJPaQo1sUG1mHukj1jZuZeAYP1nCg2FZF1IbEkdJP3vjmJ1ydkAmoIQqW8FDTF6rto3GcT7HCyk8pWu9Y9v3hmESWFW6XopzyFkHQxCf+ChdiRf+CPvGOCHhBbhmN0Un9hjLjdPc8SNzuQVbzcQf8bA87zvkQ=
  • List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>

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 <jyoung5@xxxxxxxxxx>
Signed-off-by: Jerone Young <jerone@xxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.