Clear the direction flag to get the correct output.
Signed-off-by: Avi Kivity <[email protected]>
---
kvm/user/test/x86/realmode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kvm/user/test/x86/realmode.c b/kvm/user/test/x86/realmode.c
index 0db09b8..f9e303f 100644
--- a/kvm/user/test/x86/realmode.c
+++ b/kvm/user/test/x86/realmode.c
@@ -26,7 +26,7 @@ static void print_serial(const char *buf)
{
unsigned long len = strlen(buf);
- asm volatile ("addr32/rep/outsb" : "+S"(buf), "+c"(len) : "d"(0xf1));
+ asm volatile ("cld; addr32/rep/outsb" : "+S"(buf), "+c"(len) :
"d"(0xf1));
}
static void exit(int code)
--
1.6.1.1
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html