fix x64 build of hal
[reactos.git] / reactos / ntoskrnl / kdbg / amd64 / kdb.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/kdbg/kdb.c
5 * PURPOSE: Kernel Debugger
6 *
7 * PROGRAMMERS: Gregor Anich
8 */
9
10 /* INCLUDES ******************************************************************/
11
12 #include <ntoskrnl.h>
13 #define NDEBUG
14 #include <internal/debug.h>
15
16 /* GLOBALS *******************************************************************/
17
18 ULONG KdbDebugState = 0; /* KDBG Settings (NOECHO, KDSERIAL) */
19
20 /* FUNCTIONS *****************************************************************/
21
22 VOID
23 STDCALL
24 KdbpGetCommandLineSettings(PCHAR p1)
25 {
26 PCHAR p2;
27
28 while (p1 && (p2 = strchr(p1, ' ')))
29 {
30 p2++;
31
32 if (!_strnicmp(p2, "KDSERIAL", 8))
33 {
34 p2 += 8;
35 KdbDebugState |= KD_DEBUG_KDSERIAL;
36 KdpDebugMode.Serial = TRUE;
37 }
38 else if (!_strnicmp(p2, "KDNOECHO", 8))
39 {
40 p2 += 8;
41 KdbDebugState |= KD_DEBUG_KDNOECHO;
42 }
43
44 p1 = p2;
45 }
46 }
47