X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FInput%2FPS2KbMouse%2F8042.c;h=d76322cbbc81b8b239e7c8bf68cbba8d62d5fe5a;hb=440a12bc5613b5195d032fd0878de945a9b51e56;hp=e11bc74f026ab2370d50e6ba3efe50cb5a14cdea;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Input/PS2KbMouse/8042.c b/KernelLand/Modules/Input/PS2KbMouse/8042.c index e11bc74f..d76322cb 100644 --- a/KernelLand/Modules/Input/PS2KbMouse/8042.c +++ b/KernelLand/Modules/Input/PS2KbMouse/8042.c @@ -24,10 +24,9 @@ void KBC8042_Init(void) IRQ_AddHandler(12, KBC8042_MouseHandler, NULL); // Set IRQ { - Uint8 temp; // Attempt to get around a strange bug in Bochs/Qemu by toggling // the controller on and off - temp = inb(0x61); + Uint8 temp = inb(0x61); outb(0x61, temp | 0x80); outb(0x61, temp & 0x7F); inb(0x60); // Clear keyboard buffer @@ -36,11 +35,7 @@ void KBC8042_Init(void) void KBC8042_KeyboardHandler(int IRQ, void *Ptr) { - Uint8 scancode; - -// Log("KBC8042_KeyboardHandler: (IRQ=%i, Ptr=%p)", IRQ, Ptr); - - scancode = inb(0x60); + Uint8 scancode = inb(0x60); KB_HandleScancode( scancode ); }