Author: tkreuzer
Date: Tue Oct 11 21:29:13 2011
New Revision: 54087
URL:
http://svn.reactos.org/svn/reactos?rev=54087&view=rev
Log:
[NTOSKRNL]
Handle some ros specific codes in KD64 version of KdSystemDebugControl (tab-k, ...)
Modified:
trunk/reactos/ntoskrnl/kd64/kdapi.c
Modified: trunk/reactos/ntoskrnl/kd64/kdapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd64/kdapi.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/kd64/kdapi.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd64/kdapi.c [iso-8859-1] Tue Oct 11 21:29:13 2011
@@ -1948,6 +1948,26 @@
IN OUT PULONG ReturnLength,
IN KPROCESSOR_MODE PreviousMode)
{
+ /* handle sime internal commands */
+ if (Command == ' soR')
+ {
+ switch ((ULONG_PTR)InputBuffer)
+ {
+ case 0x30: // ManualBugCheck:
+ KeBugCheck(MANUALLY_INITIATED_CRASH);
+ break;
+
+ case 0x25: // EnterDebugger:
+ DbgBreakPoint();
+ break;
+
+ case 0x24:
+ MmDumpArmPfnDatabase(FALSE);
+ break;
+ }
+ return STATUS_SUCCESS;
+ }
+
/* Local kernel debugging is not yet supported */
DbgPrint("KdSystemDebugControl is unimplemented!\n");
return STATUS_NOT_IMPLEMENTED;