3 * - By John Hodge (thePowersGang)
6 * - Keyboard/serial kernel debug hooks
9 #include <debug_hooks.h>
12 void DebugHook_HandleInput(tDebugHook *HookHandle, size_t Length, const char *Input)
17 HookHandle->Value *= 10;
18 HookHandle->Value += *Input - '0';
20 // Instruction Tracing
22 Log("Toggle instruction tracing on %i\n", HookHandle->Value);
23 Threads_ToggleTrace( HookHandle->Value );
24 HookHandle->Value = 0;
28 case 'p': Threads_Dump(); return;
30 case 'h': Heap_Stats(); return;
32 case 'm': MM_DumpStatistics(); return;
36 // Validate structures
38 // Validate_VirtualMemoryUsage();