Skip to contentSkip to conversation

[6289] Update bochs bios

Qemu-devel Anthony Liguori 1 participant 1 message Jan 13, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6289

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6289
Author:   aliguori
Date:     2009-01-13 20:06:26 +0000 (Tue, 13 Jan 2009)

Log Message:
-----------
Update bochs bios

They have applied all of our patches and they have an additional HPET fix.

Modified Paths:
--------------
trunk/pc-bios/bios-pq/HEAD
trunk/pc-bios/bios-pq/series
trunk/pc-bios/bios.bin

Removed Paths:
-------------

    trunk/pc-bios/bios-pq/0002_e820-high-mem.patch
    trunk/pc-bios/bios-pq/0003_smp-startup-poll.patch
    trunk/pc-bios/bios-pq/0005_hpet.patch

Deleted: trunk/pc-bios/bios-pq/0002_e820-high-mem.patch
===================================================================

pc-bios/bios-pq/0002_e820-high-mem.patch +0 -129
@@ -1,129 +0,0 @@
-From: Izik Eidus <[email protected]>
-
-add support to memory above the pci hole
-    
-the new memory region is mapped after address 0x100000000,
-the bios take the size of the memory after the 0x100000000 from
-three new cmos bytes.
-
-diff --git a/bios/rombios.c b/bios/rombios.c
-index 1be0816..b70f249 100644
---- a/bios/rombios.c
-+++ b/bios/rombios.c
-@@ -4442,22 +4442,25 @@ BX_DEBUG_INT15("case default:\n");
- #endif // BX_USE_PS2_MOUSE
- 
- 
--void set_e820_range(ES, DI, start, end, type)
-+void set_e820_range(ES, DI, start, end, extra_start, extra_end, type)
-      Bit16u ES;
-      Bit16u DI;
-      Bit32u start;
-      Bit32u end;
-+     Bit8u extra_start;
-+     Bit8u extra_end;
-      Bit16u type;
- {
-     write_word(ES, DI, start);
-     write_word(ES, DI+2, start >> 16);
--    write_word(ES, DI+4, 0x00);
-+    write_word(ES, DI+4, extra_start);
-     write_word(ES, DI+6, 0x00);
- 
-     end -= start;
-+    extra_end -= extra_start;
-     write_word(ES, DI+8, end);
-     write_word(ES, DI+10, end >> 16);
--    write_word(ES, DI+12, 0x0000);
-+    write_word(ES, DI+12, extra_end);
-     write_word(ES, DI+14, 0x0000);
- 
-     write_word(ES, DI+16, type);
-@@ -4470,7 +4473,9 @@ int15_function32(regs, ES, DS, FLAGS)
-   Bit16u ES, DS, FLAGS;
- {
-   Bit32u  extended_memory_size=0; // 64bits long
-+  Bit32u  extra_lowbits_memory_size=0;
-   Bit16u  CX,DX;
-+  Bit8u   extra_highbits_memory_size=0;
- 
- BX_DEBUG_INT15("int15 AX=%04x\n",regs.u.r16.ax);
- 
-@@ -4544,11 +4549,18 @@ ASM_END
-                     extended_memory_size += (1L * 1024 * 1024);
-                 }
- 
-+                extra_lowbits_memory_size = inb_cmos(0x5c);
-+                extra_lowbits_memory_size <<= 8;
-+                extra_lowbits_memory_size |= inb_cmos(0x5b);
-+                extra_lowbits_memory_size *= 64;
-+                extra_lowbits_memory_size *= 1024;
-+                extra_highbits_memory_size = inb_cmos(0x5d);
-+
-                 switch(regs.u.r16.bx)
-                 {
-                     case 0:
-                         set_e820_range(ES, regs.u.r16.di,
--                                       0x0000000L, 0x0009f000L, 1);
-+                                       0x0000000L, 0x0009f000L, 0, 0, 1);
-                         regs.u.r32.ebx = 1;
-                         regs.u.r32.eax = 0x534D4150;
-                         regs.u.r32.ecx = 0x14;
-@@ -4557,7 +4569,7 @@ ASM_END
-                         break;
-                     case 1:
-                         set_e820_range(ES, regs.u.r16.di,
--                                       0x0009f000L, 0x000a0000L, 2);
-+                                       0x0009f000L, 0x000a0000L, 0, 0, 2);
-                         regs.u.r32.ebx = 2;
-                         regs.u.r32.eax = 0x534D4150;
-                         regs.u.r32.ecx = 0x14;
-@@ -4566,7 +4578,7 @@ ASM_END
-                         break;
-                     case 2:
-                         set_e820_range(ES, regs.u.r16.di,
--                                       0x000e8000L, 0x00100000L, 2);
-+                                       0x000e8000L, 0x00100000L, 0, 0, 2);
-                         regs.u.r32.ebx = 3;
-                         regs.u.r32.eax = 0x534D4150;
-                         regs.u.r32.ecx = 0x14;
-@@ -4577,7 +4589,7 @@ ASM_END
- #if BX_ROMBIOS32
-                         set_e820_range(ES, regs.u.r16.di,
-                                        0x00100000L,
--                                       extended_memory_size - ACPI_DATA_SIZE, 1);
-+                                       extended_memory_size - ACPI_DATA_SIZE ,0, 0, 1);
-                         regs.u.r32.ebx = 4;
- #else
-                         set_e820_range(ES, regs.u.r16.di,
-@@ -4593,7 +4605,7 @@ ASM_END
-                     case 4:
-                         set_e820_range(ES, regs.u.r16.di,
-                                        extended_memory_size - ACPI_DATA_SIZE,
--                                       extended_memory_size, 3); // ACPI RAM
-+                                       extended_memory_size ,0, 0, 3); // ACPI RAM
-                         regs.u.r32.ebx = 5;
-                         regs.u.r32.eax = 0x534D4150;
-                         regs.u.r32.ecx = 0x14;
-@@ -4603,7 +4615,20 @@ ASM_END
-                     case 5:
-                         /* 256KB BIOS area at the end of 4 GB */
-                         set_e820_range(ES, regs.u.r16.di,
--                                       0xfffc0000L, 0x00000000L, 2);
-+                                       0xfffc0000L, 0x00000000L ,0, 0, 2);
-+                        if (extra_highbits_memory_size || extra_lowbits_memory_size)
-+                            regs.u.r32.ebx = 6;
-+                        else
-+                            regs.u.r32.ebx = 0;
-+                        regs.u.r32.eax = 0x534D4150;
-+                        regs.u.r32.ecx = 0x14;
-+                        CLEAR_CF();
-+                        return;
-+                    case 6:
-+                        /* Maping of memory above 4 GB */
-+                        set_e820_range(ES, regs.u.r16.di, 0x00000000L,
-+                        extra_lowbits_memory_size, 1, extra_highbits_memory_size
-+                                       + 1, 1);
-                         regs.u.r32.ebx = 0;
-                         regs.u.r32.eax = 0x534D4150;
-                         regs.u.r32.ecx = 0x14;

Deleted: trunk/pc-bios/bios-pq/0003_smp-startup-poll.patch
===================================================================

pc-bios/bios-pq/0003_smp-startup-poll.patch +0 -21
@@ -1,21 +0,0 @@
-From: Avi Kivity <[email protected]>
-
-instead of timing out, wait until all cpus are up
-
-diff --git a/bios/rombios32.c b/bios/rombios32.c
-index ef98a41..05ba40d 100644
---- a/bios/rombios32.c
-+++ b/bios/rombios32.c
-@@ -512,7 +512,12 @@ void smp_probe(void)
-         sipi_vector = AP_BOOT_ADDR >> 12;
-         writel(APIC_BASE + APIC_ICR_LOW, 0x000C4600 | sipi_vector);
- 
-+#ifndef BX_QEMU
-         delay_ms(10);
-+#else
-+        while (cmos_readb(0x5f) + 1 != readw(&smp_cpus))
-+            ;
-+#endif
-     }
-     BX_INFO("Found %d cpu(s)\n", readw(&smp_cpus));
- }

Deleted: trunk/pc-bios/bios-pq/0005_hpet.patch
===================================================================

pc-bios/bios-pq/0005_hpet.patch +0 -190

190 lines not on this page · raw message

Modified: trunk/pc-bios/bios-pq/HEAD
===================================================================

pc-bios/bios-pq/HEAD +1 -1
@@ -1 +1 @@
-370a7e0d8419bc05192d766c11b7221e5ffc0f75
+7342176bb0fa9d6cc63b37f6ac239e3f70b74219

Modified: trunk/pc-bios/bios-pq/series
===================================================================

pc-bios/bios-pq/series +0 -3
@@ -1,4 +1 @@
 0001_bx-qemu.patch
-0002_e820-high-mem.patch
-0003_smp-startup-poll.patch
-0005_hpet.patch

Modified: trunk/pc-bios/bios.bin
===================================================================
(Binary files differ)