forked from pool/libsmbios
This commit is contained in:
parent
eca8ad8236
commit
24df3f606c
@ -1,28 +1,12 @@
|
|||||||
Index: libsmbios-2.2.28/src/bin/dellMediaDirectCtl.cpp
|
Index: libsmbios-2.2.28/src/bin/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libsmbios-2.2.28.orig/src/bin/dellMediaDirectCtl.cpp
|
--- libsmbios-2.2.28.orig/src/bin/Makefile.am
|
||||||
+++ libsmbios-2.2.28/src/bin/dellMediaDirectCtl.cpp
|
+++ libsmbios-2.2.28/src/bin/Makefile.am
|
||||||
@@ -196,17 +196,21 @@ void _callSmi(smiRegs *r, u8 port)
|
@@ -73,6 +73,7 @@ if BUILD_MEDIA_DIRECT
|
||||||
|
sbin_PROGRAMS += out/dellMediaDirectCtl
|
||||||
|
out_dellMediaDirectCtl_SOURCES = src/bin/dellMediaDirectCtl.cpp
|
||||||
|
out_dellMediaDirectCtl_LDADD = out/libsmbios.la out/libgetopt.la $(AM_LDADD)
|
||||||
|
+out_dellMediaDirectCtl_CFLAGS = -fno-PIE
|
||||||
|
endif
|
||||||
|
|
||||||
__asm__ __volatile__ (
|
# dellBiosUpdate uses private headers... this is bad.
|
||||||
// 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),
|
|
||||||
|
Loading…
Reference in New Issue
Block a user