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

[Xen-changelog] [xen-unstable] [XEN][POWERPC] Fix dom0 boot when using built-in zImage.



# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1176413852 18000
# Node ID 5bda20f0723daea6c4390eaa77f7860ec0cd67a7
# Parent  879625f363eebb9a5218282fe20af83ba0ac9e17
[XEN][POWERPC] Fix dom0 boot when using built-in zImage.
We need to respect the ELF entry point.
Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/domain_build.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 879625f363ee -r 5bda20f0723d xen/arch/powerpc/domain_build.c
--- a/xen/arch/powerpc/domain_build.c   Thu Apr 12 13:05:04 2007 -0500
+++ b/xen/arch/powerpc/domain_build.c   Thu Apr 12 16:37:32 2007 -0500
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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