[seabios/f15] add fix-bregs-for-gcc.patch
bonzini
bonzini at fedoraproject.org
Wed Mar 21 22:36:08 UTC 2012
commit 47ed691f1fad69e755905e446492d103bf4836e0
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Wed Mar 21 23:32:24 2012 +0100
add fix-bregs-for-gcc.patch
fix-bregs-for-gcc.patch | 17 +++++++++++++++++
seabios.spec | 3 +++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/fix-bregs-for-gcc.patch b/fix-bregs-for-gcc.patch
new file mode 100644
index 0000000..99f9f71
--- /dev/null
+++ b/fix-bregs-for-gcc.patch
@@ -0,0 +1,17 @@
+diff --git a/src/bregs.h b/src/bregs.h
+index 9a381d0..8e1af4d 100644
+--- a/src/bregs.h
++++ b/src/bregs.h
+@@ -37,9 +37,9 @@
+ struct bregs {
+ u16 ds;
+ u16 es;
+- UREG(edi, di, di_hi, di_lo);
+- UREG(esi, si, si_hi, si_lo);
+- UREG(ebp, bp, bp_hi, bp_lo);
++ UREG(edi, di, dih, dil);
++ UREG(esi, si, sih, sil);
++ UREG(ebp, bp, bph, bpl);
+ UREG(ebx, bx, bh, bl);
+ UREG(edx, dx, dh, dl);
+ UREG(ecx, cx, ch, cl);
diff --git a/seabios.spec b/seabios.spec
index 8f2fb7c..4d9227f 100644
--- a/seabios.spec
+++ b/seabios.spec
@@ -9,6 +9,7 @@ URL: http://www.coreboot.org/SeaBIOS
Source0: http://www.linuxtogo.org/~kevin/SeaBIOS/%{name}-%{version}.tar.gz
Patch00: seabios-do-not-advertise-S4-S3-in-DSDT.patch
+Patch01: fix-bregs-for-gcc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -41,6 +42,7 @@ that a typical x86 proprietary BIOS implements.
%setup -q
%patch00 -p1
+%patch01 -p1
# Makefile changes version to include date and buildhost
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
@@ -79,6 +81,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 21 2012 Paolo Bonzini <pbonzini at redhat.com> - 0.6.1-2
+- include fix for newer GCC
- Stop advertising S3 and S4 in DSDT (bz#704467)
- incdule iasl buildreq
More information about the scm-commits
mailing list