X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fkb.c;h=5e078406b595b0bcf0384b00ac3d8a52c1e2e023;hb=89fba51f2433cf185831ee70554b99fe87e44a9d;hp=ba9eb72cdeda37aeaad1ed40ba6cdd6ce403049a;hpb=45f9a29e481ce9ea7ca7121541f0e0f90147f5b1;p=tpg%2Facess2.git diff --git a/Kernel/drv/kb.c b/Kernel/drv/kb.c index ba9eb72c..5e078406 100644 --- a/Kernel/drv/kb.c +++ b/Kernel/drv/kb.c @@ -83,17 +83,15 @@ void KB_IRQHandler() // int keyNum; // Check port 0x64 to tell if this is from the aux port - if( inb(0x64) & 0x20 ) return; + //if( inb(0x64) & 0x20 ) return; scancode = inb(0x60); // Read from the keyboard's data buffer //Log_Debug("Keyboard", "scancode = %02x", scancode); - //Log("KB_IRQHandler: scancode = 0x%02x", scancode); - // Ignore ACKs if(scancode == 0xFA) { - // Oh man! This is anachic (I'm leaving it here to represent the - // mess that Acess once was) + // Oh man! This is anarchic (I'm leaving it here to represent + // the mess that Acess once was) //kb_lastChar = KB_ACK; return; } @@ -185,6 +183,7 @@ void KB_IRQHandler() { switch(ch) { + case 'q': *((int*)1) = 0; break; case 'd': __asm__ __volatile__ ("xchg %bx, %bx"); break; case 'p': Threads_Dump(); break; }