Added way to enter the kernel debugger in case keyboard is disabled - couldn't
test it, though, as I couldn't reproduce the problem since then. Fixed indentation in ps2_keyboard.c. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16137 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -131,6 +131,10 @@ ps2_dev_handle_int(ps2_dev *dev, uint8 data)
|
|||||||
|
|
||||||
if ((flags & PS2_FLAG_ENABLED) == 0) {
|
if ((flags & PS2_FLAG_ENABLED) == 0) {
|
||||||
dprintf("not enabled, data dropped\n");
|
dprintf("not enabled, data dropped\n");
|
||||||
|
// TODO: remove me again; let us drop into the kernel debugger with F12
|
||||||
|
if ((flags & PS2_FLAG_KEYB) != 0 && data == 88)
|
||||||
|
panic("keyboard requested halt.\n");
|
||||||
|
|
||||||
return B_HANDLED_INTERRUPT;
|
return B_HANDLED_INTERRUPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,8 +67,6 @@ int32 keyboard_handle_int(uint8 data)
|
|||||||
if (atomic_and(&sKeyboardOpenMask, 1) == 0)
|
if (atomic_and(&sKeyboardOpenMask, 1) == 0)
|
||||||
return B_HANDLED_INTERRUPT;
|
return B_HANDLED_INTERRUPT;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: Handle braindead "pause" key special case
|
// TODO: Handle braindead "pause" key special case
|
||||||
|
|
||||||
if (data == EXTENDED_KEY) {
|
if (data == EXTENDED_KEY) {
|
||||||
|
|||||||
Reference in New Issue
Block a user