http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe6bed
)
[ioapi] Fix broken implementation of insX() in the x86 I/O API
author
Michael Brown
<mcb30@etherboot.org>
Mon, 27 Oct 2008 00:29:16 +0000
(
00:29
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Mon, 27 Oct 2008 00:29:16 +0000
(
00:29
+0000)
src/arch/i386/include/gpxe/x86_io.h
patch
|
blob
|
history
diff --git
a/src/arch/i386/include/gpxe/x86_io.h
b/src/arch/i386/include/gpxe/x86_io.h
index
0ecedfe
..
b1ae3ba
100644
(file)
--- a/
src/arch/i386/include/gpxe/x86_io.h
+++ b/
src/arch/i386/include/gpxe/x86_io.h
@@
-118,9
+118,9
@@
static inline __always_inline void \
IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr, \
const _type *data, \
unsigned int count ) { \
- unsigned int discard_
D
; \
+ unsigned int discard_
S
; \
__asm__ __volatile__ ( "rep outs" #_insn_suffix \
- : "=
D" ( discard_D
) \
+ : "=
S" ( discard_S
) \
: "d" ( io_addr ), "c" ( count ), \
"0" ( data ) ); \
}