Marcus Meissner 2015-02-22 12:13:48 +00:00 committed by Git OBS Bridge
parent 560d445780
commit eca8ad8236
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
Index: libsmbios-2.2.28/src/bin/dellMediaDirectCtl.cpp
===================================================================
--- libsmbios-2.2.28.orig/src/bin/dellMediaDirectCtl.cpp
+++ libsmbios-2.2.28/src/bin/dellMediaDirectCtl.cpp
@@ -196,17 +196,21 @@ void _callSmi(smiRegs *r, u8 port)
__asm__ __volatile__ (
// magic port
+ "push %%ebx\n\t"
+ "mov %0, %%ebx\n\t"
"outb %%al, %%dx \n\t"
+ "mov %%ebx,%1\n\t"
+ "pop %%ebx\n\t"
: /* output args */
"=a" (r->eax),
- "=b" (r->ebx),
+ "=g" (r->ebx),
"=c" (r->ecx),
"=S" (r->esi),
"=D" (r->edi)
: /* input args */
"0" (r->eax),
- "1" (r->ebx),
+ "g" (r->ebx),
"2" (r->ecx),
"3" (r->esi),
"4" (r->edi),

View File

@ -1,7 +1,7 @@
#
# spec file for package libsmbios
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,6 +29,7 @@ Group: System/Management
Url: http://linux.dell.com/libsmbios/main/
Source0: http://linux.dell.com/libsmbios/download/libsmbios/libsmbios-%{version}/%{name}-%{version}.tar.bz2
Patch1: %{name}-2.2.28-fix-bashisms.patch
Patch2: %{name}-pic-assembler.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
@ -125,6 +126,7 @@ substitutions in yum repository configuration files on Dell systems.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%configure --disable-rpath