Skip to content

Commit 6ad74e4

Browse files
committed
[NTOS:KD] Remove Bochs port debugging
You can use serial port debugging instead.
1 parent beae68e commit 6ad74e4

File tree

5 files changed

+2
-92
lines changed

5 files changed

+2
-92
lines changed

ntoskrnl/include/internal/kd.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ KdpDebugLogInit(
153153
ULONG BootPhase
154154
);
155155

156-
VOID
157-
NTAPI
158-
KdpBochsInit(
159-
struct _KD_DISPATCH_TABLE *DispatchTable,
160-
ULONG BootPhase
161-
);
162-
163156
VOID
164157
NTAPI
165158
KdpKdbgInit(
@@ -202,9 +195,8 @@ KdpSafeWriteMemory(
202195
#define KdScreen 0
203196
#define KdSerial 1
204197
#define KdFile 2
205-
#define KdBochs 3
206-
#define KdKdbg 4
207-
#define KdMax 5
198+
#define KdKdbg 3
199+
#define KdMax 4
208200

209201
/* KD Private Debug Modes */
210202
typedef struct _KDP_DEBUG_MODE
@@ -217,7 +209,6 @@ typedef struct _KDP_DEBUG_MODE
217209
UCHAR Screen :1;
218210
UCHAR Serial :1;
219211
UCHAR File :1;
220-
UCHAR Bochs :1;
221212
};
222213

223214
/* Generic Value */

ntoskrnl/kd/kdmain.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ KdpGetDebugMode(PCHAR Currentp2)
129129
KdpLogFileName.Buffer = p1;
130130
}
131131
}
132-
/* Check for BOCHS Debugging */
133-
else if (!_strnicmp(p2, "BOCHS", 5))
134-
{
135-
/* Enable It */
136-
p2 += 5;
137-
KdpDebugMode.Bochs = TRUE;
138-
}
139132

140133
return p2;
141134
}

ntoskrnl/kd/wrappers/bochs.c

Lines changed: 0 additions & 67 deletions
This file was deleted.

ntoskrnl/kd64/kddata.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,10 @@ ULONG KdPrintBufferChanges = 0;
139139

140140
#ifndef _WINKD_
141141
/* Make bochs debug output in the very early boot phase available */
142-
//#define AUTO_ENABLE_BOCHS
143142
ULONG PortNumber = DEFAULT_DEBUG_PORT;
144143
CPPORT PortInfo = {0, DEFAULT_DEBUG_BAUD_RATE, 0};
145144
ULONG KdpPortIrq;
146-
#ifdef AUTO_ENABLE_BOCHS
147-
KDP_DEBUG_MODE KdpDebugMode = {{{.Bochs=TRUE}}};
148-
#else
149145
KDP_DEBUG_MODE KdpDebugMode;
150-
#endif
151146
PKDP_INIT_ROUTINE WrapperInitRoutine;
152147
KD_DISPATCH_TABLE WrapperTable;
153148
LIST_ENTRY KdProviders = {&KdProviders, &KdProviders};
@@ -156,7 +151,6 @@ KD_DISPATCH_TABLE DispatchTable[KdMax];
156151
PKDP_INIT_ROUTINE InitRoutines[KdMax] = {KdpScreenInit,
157152
KdpSerialInit,
158153
KdpDebugLogInit,
159-
KdpBochsInit,
160154
KdpKdbgInit};
161155
#endif
162156

ntoskrnl/ntos.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ if(NOT _WINKD_)
401401
endif()
402402

403403
list(APPEND SOURCE
404-
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/wrappers/bochs.c
405404
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/wrappers/kdbg.c
406405
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdio.c
407406
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdmain.c)

0 commit comments

Comments
 (0)