qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix -kernel on target-ppc
@ 2009-01-24 20:58 Alexander Graf
  2009-01-24 21:48 ` Aurelien Jarno
  0 siblings, 1 reply; 13+ messages in thread
From: Alexander Graf @ 2009-01-24 20:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: aurelien

OpenBIOS searches for the preloaded kernel at 0x1000000, so let's
put it there instead of an invalid location.

Using this patch I was able to use -kernel for a current openSUSE
11.1 kernel.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/ppc_oldworld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c
index 042a40f..0af2436 100644
--- a/hw/ppc_oldworld.c
+++ b/hw/ppc_oldworld.c
@@ -209,7 +209,7 @@ static void ppc_heathrow_init (ram_addr_t ram_size, int vga_ram_size,
     if (linux_boot) {
         kernel_base = KERNEL_LOAD_ADDR;
         /* now we can load the kernel */
-        kernel_size = load_elf(kernel_filename, kernel_base - 0xc0000000ULL,
+        kernel_size = load_elf(kernel_filename, KERNEL_LOAD_ADDR,
                                NULL, NULL, NULL);
         if (kernel_size < 0)
             kernel_size = load_aout(kernel_filename, kernel_base,
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-01-25 20:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 20:58 [Qemu-devel] [PATCH] Fix -kernel on target-ppc Alexander Graf
2009-01-24 21:48 ` Aurelien Jarno
2009-01-24 21:57   ` Alexander Graf
2009-01-24 23:59     ` Aurelien Jarno
2009-01-25  0:28       ` Alexander Graf
2009-01-25  9:54         ` Aurelien Jarno
2009-01-25 10:03           ` Alexander Graf
2009-01-25 10:16             ` Edgar E. Iglesias
2009-01-25 10:24               ` Alexander Graf
2009-01-25 10:28                 ` Alexander Graf
2009-01-25 10:50                   ` Aurelien Jarno
2009-01-25 20:31                 ` François Revol
2009-01-25  0:30       ` François Revol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).