From 584e9b9488e8357b5355e52222d11b0ea74e2f2b Mon Sep 17 00:00:00 2001 From: Gregor Anich Date: Mon, 13 Jun 2005 15:29:05 +0000 Subject: [PATCH] Fix warnings in inline assembly (I hope this doesnt expose a GCC bug and thus break the build for others, using 3.4.2 myself and everything works) svn path=/trunk/; revision=15884 --- reactos/ntoskrnl/kd/wrappers/bochs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/kd/wrappers/bochs.c b/reactos/ntoskrnl/kd/wrappers/bochs.c index d29fffbfa17..d812c385546 100644 --- a/reactos/ntoskrnl/kd/wrappers/bochs.c +++ b/reactos/ntoskrnl/kd/wrappers/bochs.c @@ -26,14 +26,14 @@ KdpBochsDebugPrint(IN PCH Message) { #if defined(_M_IX86) && defined(__GNUC__) /* Don't use WRITE_PORT_UCHAR because hal isn't initialized yet in the very early boot phase. */ - __asm__("outb %0, %w1\n\t" :: "a" ('\r'), "d" (BOCHS_LOGGER_PORT)); + __asm__("outb %b0, %w1\n\t" :: "a" ('\r'), "d" (BOCHS_LOGGER_PORT)); #else WRITE_PORT_UCHAR((PUCHAR)BOCHS_LOGGER_PORT, '\r'); #endif } #if defined(_M_IX86) && defined(__GNUC__) /* Don't use WRITE_PORT_UCHAR because hal isn't initialized yet in the very early boot phase. */ - __asm__("outb %0, %w1\n\t" :: "a" (*Message), "d" (BOCHS_LOGGER_PORT)); + __asm__("outb %b0, %w1\n\t" :: "a" (*Message), "d" (BOCHS_LOGGER_PORT)); #else WRITE_PORT_UCHAR((PUCHAR)BOCHS_LOGGER_PORT, *Message); #endif