* [Qemu-devel] [PATCH] Add support to sparc for loading a real bios image.
@ 2007-10-06 0:09 Robert Reif
0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2007-10-06 0:09 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Add support to sparc for loading a real bios image.
[-- Attachment #2: bios.diff.txt --]
[-- Type: text/plain, Size: 1100 bytes --]
Index: hw/sun4m.c
===================================================================
RCS file: /sources/qemu/qemu/hw/sun4m.c,v
retrieving revision 1.52
diff -p -u -r1.52 sun4m.c
--- hw/sun4m.c 5 Oct 2007 13:08:35 -0000 1.52
+++ hw/sun4m.c 6 Oct 2007 00:05:16 -0000
@@ -49,7 +49,7 @@
#define KERNEL_LOAD_ADDR 0x00004000
#define CMDLINE_ADDR 0x007ff000
#define INITRD_LOAD_ADDR 0x00800000
-#define PROM_SIZE_MAX (256 * 1024)
+#define PROM_SIZE_MAX (512 * 1024)
#define PROM_PADDR 0xff0000000ULL
#define PROM_VADDR 0xffd00000
#define PROM_FILENAME "openbios-sparc32"
@@ -435,9 +435,12 @@ static void sun4m_load_kernel(long vram_
snprintf(buf, sizeof(buf), "%s/%s", bios_dir, bios_name);
ret = load_elf(buf, PROM_PADDR - PROM_VADDR, NULL, NULL, NULL);
if (ret < 0) {
- fprintf(stderr, "qemu: could not load prom '%s'\n",
+ ret = load_image(buf, phys_ram_base + prom_offset);
+ if (ret < 0) {
+ fprintf(stderr, "qemu: could not load prom '%s'\n",
buf);
- exit(1);
+ exit(1);
+ }
}
kernel_size = 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-06 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-06 0:09 [Qemu-devel] [PATCH] Add support to sparc for loading a real bios image Robert Reif
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.