浏览代码

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

tags/v0.9.6
Michael Brown 16 年前
父节点
当前提交
7a4c129af7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/arch/i386/include/gpxe/x86_io.h

+ 2
- 2
src/arch/i386/include/gpxe/x86_io.h 查看文件

@@ -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
 }

正在加载...
取消
保存