Skip to contentSkip to conversation

[6077] Update to the latest Bochs BIOS

Qemu-devel Anthony Liguori 1 participant 1 message Dec 17, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 6077

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6077
Author:   aliguori
Date:     2008-12-17 21:35:49 +0000 (Wed, 17 Dec 2008)

Log Message:
-----------
Update to the latest Bochs BIOS

Update the PC BIOS to the latest version, split out the patches into patch series, and update the README to point to the new location of the Bochs BIOS source tree.

Also update the gitignore to allow the patch queue directory to be used.

Modified Paths:
--------------
trunk/.gitignore
trunk/pc-bios/README
trunk/pc-bios/bios.bin

Added Paths:
-----------

    trunk/pc-bios/bios-pq/
    trunk/pc-bios/bios-pq/0001_bx-qemu.patch
    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/0004_no-stack-protector.patch
    trunk/pc-bios/bios-pq/HEAD
    trunk/pc-bios/bios-pq/series

Removed Paths:
-------------
trunk/pc-bios/bios.diff

Modified: trunk/.gitignore
===================================================================

.gitignore +1 -0
@@ -32,3 +32,4 @@
 *.d
 .pc
 patches
+pc-bios/bios-pq/status

Modified: trunk/pc-bios/README
===================================================================

pc-bios/README +4 -2
@@ -1,5 +1,7 @@
-- The PC BIOS comes from the Bochs project
-  (http://bochs.sourceforge.net/). A patch from bios.diff was applied.
+- The PC BIOS comes from the Bochs project (http://bochs.sourceforge.net/).
+  The patches in bios-pq have been applied. The binary is based on the revision
+  in bios-pq/HEAD with the patches in bios-pq/series applied.  The git repo
+  that HEAD refers to is located at http://repo.or.cz/w/bochs-mirror.git
 
 - The VGA BIOS and the Cirrus VGA BIOS come from the LGPL VGA bios
   project (http://www.nongnu.org/vgabios/).

Added: trunk/pc-bios/bios-pq/0001_bx-qemu.patch
===================================================================

pc-bios/bios-pq/0001_bx-qemu.patch +11 -0
@@ -0,0 +1,11 @@
+--- bochs-2.3.7.orig/bios/rombios.h
++++ bochs-2.3.7/bios/rombios.h
+@@ -19,7 +19,7 @@
+ //  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+ 
+ /* define it to include QEMU specific code */
+-//#define BX_QEMU
++#define BX_QEMU
+ 
+ #ifndef LEGACY
+ #  define BX_ROMBIOS32     1

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

pc-bios/bios-pq/0002_e820-high-mem.patch +129 -0

129 lines not on this page · raw message

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

pc-bios/bios-pq/0003_smp-startup-poll.patch +21 -0
@@ -0,0 +1,21 @@
+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));
+ }

Added: trunk/pc-bios/bios-pq/0004_no-stack-protector.patch
===================================================================

pc-bios/bios-pq/0004_no-stack-protector.patch +21 -0
@@ -0,0 +1,21 @@
+Disable stack protector for BIOS
+
+Some distro GCCs (like Ubuntu) enable stack protection by default.  Since the
+BIOS doesn't link against libgcc, this results in undefined references unless
+the stack protector is disabled.
+
+Signed-off-by: Anthony Liguori <[email protected]>
+
+diff --git a/bios/Makefile.in b/bios/Makefile.in
+index af674b4..5c7bd4f 100644
+--- a/bios/Makefile.in
++++ b/bios/Makefile.in
+@@ -41,7 +41,7 @@ RANLIB = @RANLIB@
+ 
+ BCC = bcc
+ GCC = gcc
+-GCC32 = gcc -m32
++GCC32 = gcc -m32 -fno-stack-protector
+ AS86 = as86
+ 
+ BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev

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

pc-bios/bios-pq/HEAD +1 -0
@@ -0,0 +1 @@
+8d4e158f0ea5fa00fa0276f487ff21609fbb0894

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

pc-bios/bios-pq/series +4 -0
@@ -0,0 +1,4 @@
+0001_bx-qemu.patch
+0002_e820-high-mem.patch
+0003_smp-startup-poll.patch
+0004_no-stack-protector.patch

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

Deleted: trunk/pc-bios/bios.diff
===================================================================

pc-bios/bios.diff +0 -145

145 lines not on this page · raw message