Author: tkreuzer
Date: Mon Jan 26 18:55:03 2009
New Revision: 39124
URL:
http://svn.reactos.org/svn/reactos?rev=39124&view=rev
Log:
kdcom: add SYNC_PACKET_ID for PACKET_TYPE_KD_DEBUG_IO to make debugprints work.
Modified:
branches/ros-amd64-bringup/reactos/drivers/base/kdcom/i386/kdbg.c
Modified: branches/ros-amd64-bringup/reactos/drivers/base/kdcom/i386/kdbg.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/drive…
==============================================================================
--- branches/ros-amd64-bringup/reactos/drivers/base/kdcom/i386/kdbg.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/drivers/base/kdcom/i386/kdbg.c [iso-8859-1] Mon Jan
26 18:55:03 2009
@@ -814,6 +814,12 @@
MessageData->Length);
}
+ // FIXME: this looks wrong, but makes dbgprints work
+ if (PacketType == PACKET_TYPE_KD_DEBUG_IO)
+ {
+ CurrentPacketId |= SYNC_PACKET_ID;
+ }
+
/* Set the packet id */
Packet.PacketId = CurrentPacketId;
@@ -842,6 +848,7 @@
/* Did we succeed? */
if (RcvCode == KdPacketReceived)
{
+ CurrentPacketId &= ~SYNC_PACKET_ID;
break;
}
@@ -849,7 +856,7 @@
if (PacketType == PACKET_TYPE_KD_DEBUG_IO)
{
/* No response, silently fail. */
- return;
+// return;
}
/* Packet timed out, send it again */