Browse Source

[ioapi] Fix broken implementation of insX() in the x86 I/O API

tags/v0.9.6
Michael Brown 16 years ago
parent
commit
7a4c129af7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/arch/i386/include/gpxe/x86_io.h

+ 2
- 2
src/arch/i386/include/gpxe/x86_io.h View File

118
 IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr,	      \
118
 IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr,	      \
119
 					     const _type *data,		      \
119
 					     const _type *data,		      \
120
 					     unsigned int count ) {	      \
120
 					     unsigned int count ) {	      \
121
-	unsigned int discard_D;						      \
121
+	unsigned int discard_S;						      \
122
 	__asm__ __volatile__ ( "rep outs" #_insn_suffix			      \
122
 	__asm__ __volatile__ ( "rep outs" #_insn_suffix			      \
123
-			       : "=D" ( discard_D )			      \
123
+			       : "=S" ( discard_S )			      \
124
 			       : "d" ( io_addr ), "c" ( count ),	      \
124
 			       : "d" ( io_addr ), "c" ( count ),	      \
125
 				 "0" ( data ) );			      \
125
 				 "0" ( data ) );			      \
126
 }
126
 }

Loading…
Cancel
Save