I royally screwed up that last commit somehow - but these are all part
[buildrom.git] / buildrom-devel / packages / qemu / patches / qemu-bios-size.patch
blob7214595ceb306eed0ba09ed8ed710173bc261aae
1 diff -Naur qemu-0.9.0-orig/hw/pc.c qemu-0.9.0/hw/pc.c
2 --- qemu-0.9.0-orig/hw/pc.c 2007-07-29 19:34:43.000000000 -0300
3 +++ qemu-0.9.0/hw/pc.c 2007-07-29 19:39:48.000000000 -0300
4 @@ -481,13 +481,13 @@
6 /* BIOS load */
7 bios_offset = ram_size + vga_ram_size;
8 - vga_bios_offset = bios_offset + 256 * 1024;
9 + vga_bios_offset = bios_offset + 2048 * 1024;
11 snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
12 bios_size = get_image_size(buf);
13 if (bios_size <= 0 ||
14 (bios_size % 65536) != 0 ||
15 - bios_size > (256 * 1024)) {
16 + bios_size > (2048 * 1024)) {
17 goto bios_error;
19 ret = load_image(buf, phys_ram_base + bios_offset);
20 diff -Naur qemu-0.9.0-orig/vl.h qemu-0.9.0/vl.h
21 --- qemu-0.9.0-orig/vl.h 2007-07-29 19:34:43.000000000 -0300
22 +++ qemu-0.9.0/vl.h 2007-07-29 19:40:19.000000000 -0300
23 @@ -170,7 +170,7 @@
24 #elif defined(TARGET_MIPS)
25 #define BIOS_SIZE (4 * 1024 * 1024)
26 #else
27 -#define BIOS_SIZE ((256 + 64) * 1024)
28 +#define BIOS_SIZE ((2048 + 64) * 1024)
29 #endif
31 /* keyboard/mouse support */