diff options
author | Michael Brown | 2008-10-27 01:29:16 +0100 |
---|---|---|
committer | Michael Brown | 2008-10-27 01:29:16 +0100 |
commit | 7a4c129af72ec2b4d97eeefe8abd2db6cac5276c (patch) | |
tree | 8cdea0eeed23d42f197c23e5e12ea6978b057a7d | |
parent | [uri] Avoid interpreting DOS-style path names as opaque URIs (diff) | |
download | ipxe-7a4c129af72ec2b4d97eeefe8abd2db6cac5276c.tar.gz ipxe-7a4c129af72ec2b4d97eeefe8abd2db6cac5276c.tar.xz ipxe-7a4c129af72ec2b4d97eeefe8abd2db6cac5276c.zip |
[ioapi] Fix broken implementation of insX() in the x86 I/O API
-rw-r--r-- | src/arch/i386/include/gpxe/x86_io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/include/gpxe/x86_io.h b/src/arch/i386/include/gpxe/x86_io.h index 0ecedfef..b1ae3bac 100644 --- 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 ) ); \ } |