mirror of
https://github.com/ipxe/ipxe
synced 2026-03-16 03:02:07 +03:00
[ioapi] Fix broken implementation of insX() in the x86 I/O API
This commit is contained in:
@@ -118,9 +118,9 @@ static inline __always_inline void \
|
|||||||
IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr, \
|
IOAPI_INLINE ( x86, outs ## _insn_suffix ) ( volatile _type *io_addr, \
|
||||||
const _type *data, \
|
const _type *data, \
|
||||||
unsigned int count ) { \
|
unsigned int count ) { \
|
||||||
unsigned int discard_D; \
|
unsigned int discard_S; \
|
||||||
__asm__ __volatile__ ( "rep outs" #_insn_suffix \
|
__asm__ __volatile__ ( "rep outs" #_insn_suffix \
|
||||||
: "=D" ( discard_D ) \
|
: "=S" ( discard_S ) \
|
||||||
: "d" ( io_addr ), "c" ( count ), \
|
: "d" ( io_addr ), "c" ( count ), \
|
||||||
"0" ( data ) ); \
|
"0" ( data ) ); \
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user