mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 03:48:17 +00:00
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
This commit is contained in:
parent
e3502f710b
commit
584e9b9488
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue