Browse Source

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

tags/v0.9.6
Michael Brown 15 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,9 +118,9 @@ static inline __always_inline void					      \
118 118
 IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr,	      \
119 119
 					     const _type *data,		      \
120 120
 					     unsigned int count ) {	      \
121
-	unsigned int discard_D;						      \
121
+	unsigned int discard_S;						      \
122 122
 	__asm__ __volatile__ ( "rep outs" #_insn_suffix			      \
123
-			       : "=D" ( discard_D )			      \
123
+			       : "=S" ( discard_S )			      \
124 124
 			       : "d" ( io_addr ), "c" ( count ),	      \
125 125
 				 "0" ( data ) );			      \
126 126
 }

Loading…
Cancel
Save