From 440a12bc5613b5195d032fd0878de945a9b51e56 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Fri, 7 Nov 2014 10:51:34 +0800 Subject: [PATCH] Modules/PS2KbMouse - (minor) Cleanup 8042 driver a little --- KernelLand/Modules/Input/PS2KbMouse/8042.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/KernelLand/Modules/Input/PS2KbMouse/8042.c b/KernelLand/Modules/Input/PS2KbMouse/8042.c index f71fff7f..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 -- 2.20.1