Author: tkreuzer
Date: Thu Jan 22 09:55:21 2009
New Revision: 39019
URL:
http://svn.reactos.org/svn/reactos?rev=39019&view=rev
Log:
ks64: Don't truncate the Thread pointer. Silence a warning.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/kdapi.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/kdapi.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/kdapi.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/kdapi.c [iso-8859-1] Thu Jan 22
09:55:21 2009
@@ -172,7 +172,7 @@
WaitStateChange->ProcessorLevel = KeProcessorLevel;
WaitStateChange->Processor = (USHORT)KeGetCurrentPrcb()->Number;
WaitStateChange->NumberProcessors = (ULONG)KeNumberProcessors;
- WaitStateChange->Thread = (ULONG)(LONG_PTR)KeGetCurrentThread();
+ WaitStateChange->Thread = (LONG_PTR)KeGetCurrentThread();
#if defined(_M_X86_)
WaitStateChange->ProgramCounter = (ULONG)(LONG_PTR)Context->Eip;
#elif defined(_M_AMD64)
@@ -332,6 +332,7 @@
break;
default:
+ RealLength = 0;
ControlStart = NULL;
ASSERT(FALSE);
}
@@ -980,7 +981,7 @@
STRING Header, Data;
DBGKD_WAIT_STATE_CHANGE64 WaitStateChange;
BOOLEAN Status;
-FrLdrDbgPrint("Enter KdpReportExceptionStateChange, Rip = 0x%p\n",
(PVOID)Context->Rip);
+
/* Start report loop */
do
{
@@ -1001,14 +1002,14 @@
/* Setup the trace data */
DumpTraceData(&Data);
-FrLdrDbgPrint("KdpReportExceptionStateChange 5\n");
+
/* Send State Change packet and wait for a reply */
Status = KdpSendWaitContinue(PACKET_TYPE_KD_STATE_CHANGE64,
&Header,
&Data,
Context);
} while (Status == KdPacketNeedsResend);
-FrLdrDbgPrint("Leave KdpReportExceptionStateChange, Status = 0x%x\n", Status);
+
/* Return */
return Status;
}