[Top][All Lists]
[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
- [Qemu-devel] [PATCH] Fix -kernel on target-ppc,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Aurelien Jarno, 2009/01/24
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Alexander Graf, 2009/01/24
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Aurelien Jarno, 2009/01/24
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Alexander Graf, 2009/01/24
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Aurelien Jarno, 2009/01/25
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Alexander Graf, 2009/01/25
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Edgar E. Iglesias, 2009/01/25
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Alexander Graf, 2009/01/25
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Alexander Graf, 2009/01/25
- Re: [Qemu-devel] [PATCH] Fix -kernel on target-ppc, Aurelien Jarno, 2009/01/25