qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] Fix -kernel on target-ppc


From: Alexander Graf
Subject: [Qemu-devel] [PATCH] Fix -kernel on target-ppc
Date: Sat, 24 Jan 2009 21:58:35 +0100

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 <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]