git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Input
/
PS2KbMouse
/
8042.c
diff --git
a/KernelLand/Modules/Input/PS2KbMouse/8042.c
b/KernelLand/Modules/Input/PS2KbMouse/8042.c
index
f71fff7
..
d76322c
100644
(file)
--- 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
{
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
// 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
outb(0x61, temp | 0x80);
outb(0x61, temp & 0x7F);
inb(0x60); // Clear keyboard buffer
UCC
git Repository :: git.ucc.asn.au