From 2381ccd2f02b978f0fc1be38c3d36807d35d356c Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 11 Oct 2011 21:29:13 +0000 Subject: [PATCH] [NTOSKRNL] Handle some ros specific codes in KD64 version of KdSystemDebugControl (tab-k, ...) svn path=/trunk/; revision=54087 --- reactos/ntoskrnl/kd64/kdapi.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reactos/ntoskrnl/kd64/kdapi.c b/reactos/ntoskrnl/kd64/kdapi.c index 04673d09877..4e008e70c56 100644 --- a/reactos/ntoskrnl/kd64/kdapi.c +++ b/reactos/ntoskrnl/kd64/kdapi.c @@ -1948,6 +1948,26 @@ KdSystemDebugControl(IN SYSDBG_COMMAND Command, 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;