Author: tkreuzer
Date: Tue Jan 27 10:26:30 2009
New Revision: 39136
URL:
http://svn.reactos.org/svn/reactos?rev=39136&view=rev
Log:
kd64: Move KdpSysGetVersion into arch-specific file
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/amd64/kd-amd64.c
branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/i386/kd-i386.c
branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/kdapi.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/amd64/kd-amd64.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/amd64/kd-amd64.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/amd64/kd-amd64.c [iso-8859-1] Tue Jan
27 10:26:30 2009
@@ -13,6 +13,20 @@
#include <debug.h>
/* PRIVATE FUNCTIONS *********************************************************/
+
+VOID
+NTAPI
+KdpSysGetVersion(IN PDBGKD_GET_VERSION64 Version)
+{
+ /* Copy the version block */
+ RtlCopyMemory(Version, &KdVersionBlock, sizeof(DBGKD_GET_VERSION64));
+
+Version->PsLoadedModuleList = &KeLoaderBlock->LoadOrderListHead;
+
+ Version->Flags = DBGKD_VERS_FLAG_PTR64 | DBGKD_VERS_FLAG_DATA;
+ Version->KdSecondaryVersion = KD_SECONDARY_VERSION_AMD64_CONTEXT;
+
+}
VOID
NTAPI
@@ -149,7 +163,7 @@
PreviousMode,
SecondChanceException);
}
-
+FrLdrDbgPrint("leave KdpTrap\n");
/* Return TRUE or FALSE to caller */
return Status;
}
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/i386/kd-i386.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/i386/kd-i386.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/kd64/i386/kd-i386.c [iso-8859-1] Tue Jan
27 10:26:30 2009
@@ -13,6 +13,14 @@
#include <debug.h>
/* PRIVATE FUNCTIONS *********************************************************/
+
+VOID
+NTAPI
+KdpSysGetVersion(IN PDBGKD_GET_VERSION64 Version)
+{
+ /* Copy the version block */
+ RtlCopyMemory(Version, &KdVersionBlock, sizeof(DBGKD_GET_VERSION64));
+}
VOID
NTAPI
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] Tue Jan 27
10:26:30 2009
@@ -208,14 +208,6 @@
VOID
NTAPI
-KdpSysGetVersion(IN PDBGKD_GET_VERSION64 Version)
-{
- /* Copy the version block */
- RtlCopyMemory(Version, &KdVersionBlock, sizeof(DBGKD_GET_VERSION64));
-}
-
-VOID
-NTAPI
KdpGetVersion(IN PDBGKD_MANIPULATE_STATE64 State)
{
STRING Header;
@@ -226,8 +218,6 @@
/* Get the version block */
KdpSysGetVersion(&State->u.GetVersion64);
-
-//State->u.GetVersion64.PsLoadedModuleList =
&KeLoaderBlock->LoadOrderListHead;
/* Fill out the state */
State->ApiNumber = DbgKdGetVersionApi;