revert 43682, fix kdcom build

svn path=/branches/ros-amd64-bringup/; revision=43763
This commit is contained in:
Timo Kreuzer
2009-10-25 23:28:26 +00:00
parent cc5c0a0816
commit 0076b6520b
5 changed files with 50 additions and 8 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ KdReceivePacket(
/* Check if we got a breakin */
if (KdStatus == KDP_PACKET_RESEND)
{
KdContext->BreakInRequested = TRUE;
KdContext->KdpControlCPending = TRUE;
}
return KdStatus;
}
+42
View File
@@ -40,4 +40,46 @@ typedef enum
#define KDDBGPRINT KdpDbgPrint
#endif
VOID
NTAPI
KdpSendBuffer(
IN PVOID Buffer,
IN ULONG Size);
KDP_STATUS
NTAPI
KdpReceiveBuffer(
OUT PVOID Buffer,
IN ULONG Size);
KDP_STATUS
NTAPI
KdpReceivePacketLeader(
OUT PULONG PacketLeader);
VOID
NTAPI
KdpSendByte(IN BYTE Byte);
KDP_STATUS
NTAPI
KdpPollByte(OUT PBYTE OutByte);
KDP_STATUS
NTAPI
KdpReceiveByte(OUT PBYTE OutByte);
KDP_STATUS
NTAPI
KdpPollBreakIn();
#if 0
NTSTATUS
NTAPI
KdDebuggerInitialize0(
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL);
#endif
#endif /* !_KDDLL_H_ */
+2 -2
View File
@@ -220,8 +220,8 @@ typedef struct _KD_PACKET
//
typedef struct _KD_CONTEXT
{
ULONG RetryCount;
BOOLEAN BreakInRequested;
ULONG KdpDefaultRetries;
BOOLEAN KdpControlCPending;
} KD_CONTEXT, *PKD_CONTEXT;
//
+1 -1
View File
@@ -285,7 +285,7 @@ KdInitSystem(IN ULONG BootPhase,
if (!KdpDebuggerStructuresInitialized)
{
/* Set the Debug Switch Routine and Retries*/
KdpContext.RetryCount = 20;
KdpContext.KdpDefaultRetries = 20;
KiDebugSwitchRoutine = KdpSwitchProcessor;
/* Initialize the Time Slip DPC */
+4 -4
View File
@@ -40,11 +40,11 @@ KdpPollBreakInWithPortLock(VOID)
if (KdDebuggerEnabled)
{
/* Check if a CTRL-C is in the queue */
if (KdpContext.BreakInRequested)
if (KdpContext.KdpControlCPending)
{
/* Set it and prepare for break */
DoBreak = TRUE;
KdpContext.BreakInRequested = FALSE;
KdpContext.KdpControlCPending = FALSE;
}
else
{
@@ -83,12 +83,12 @@ KdPollBreakIn(VOID)
Enable = KeDisableInterrupts();
/* Check if a CTRL-C is in the queue */
if (KdpContext.BreakInRequested)
if (KdpContext.KdpControlCPending)
{
/* Set it and prepare for break */
KdpControlCPressed = TRUE;
DoBreak = TRUE;
KdpContext.BreakInRequested = FALSE;
KdpContext.KdpControlCPending = FALSE;
}
else
{