Skip to content

Commit 77d9456

Browse files
diseanbinarymaster
authored andcommitted
[KDBG] Apply a hack to allow serial communication working
1 parent 3cad985 commit 77d9456

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ntoskrnl/kd/kdps2kbd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define kbd_read_input() READ_PORT_UCHAR((PUCHAR)KBD_DATA_REG)
3636
#define kbd_read_status() READ_PORT_UCHAR((PUCHAR)KBD_STATUS_REG)
3737

38+
#if 0
3839
static unsigned char keyb_layout[2][128] =
3940
{
4041
"\000\0331234567890-=\177\t" /* 0x00 - 0x0f */
@@ -53,6 +54,7 @@ static unsigned char keyb_layout[2][128] =
5354
"230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
5455
"\r\000/" /* 0x60 - 0x6f */
5556
};
57+
#endif
5658

5759
typedef UCHAR byte_t;
5860

@@ -61,6 +63,7 @@ typedef UCHAR byte_t;
6163
static VOID
6264
KbdSendCommandToMouse(UCHAR Command)
6365
{
66+
#if 0
6467
ULONG Retry = 20000;
6568

6669
while (kbd_read_status() & KBD_STAT_OBF && Retry--)
@@ -87,6 +90,7 @@ KbdSendCommandToMouse(UCHAR Command)
8790

8891
if (kbd_read_input() != MOUSE_ACK) { ; }
8992

93+
#endif
9094
return;
9195
}
9296

@@ -103,6 +107,7 @@ VOID KbdDisableMouse(VOID)
103107
CHAR
104108
KdbpTryGetCharKeyboard(PULONG ScanCode, ULONG Retry)
105109
{
110+
#if 0
106111
static byte_t last_key = 0;
107112
static byte_t shift = 0;
108113
char c;
@@ -141,6 +146,7 @@ KdbpTryGetCharKeyboard(PULONG ScanCode, ULONG Retry)
141146
}
142147
}
143148

149+
#endif
144150
return -1;
145151
}
146152

0 commit comments

Comments
 (0)