WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [PATCH] Fix so now can use Zimages again
From: "Jerone Young" <jerone@xxxxxxxxx>
Date: Mon, 2 Apr 2007 15:57:02 -0500
Delivery-date: Mon, 02 Apr 2007 13:55:43 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ei6lt7abmEuYZsNq3CPdiIOM4BE/Rm1F4n7OJbgs2Dwc0jMJTQ9lC1vMI2+2KCdg/WJ0u9gIEkUNnQXvJtFE0NofgQdy2GnOjvs5NRT+rgNzCh2aaeWP6Cj1XRwTuSfTPG77sRRbRwioPWkGaI2ZdzjftgiGEJch0y1h/qArk7c=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [PATCH] Fix so now can use Zimages again, Jerone Young <=