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
AcessNative - Fixing Fixing Fixing
[tpg/acess2.git]
/
Modules
/
Input
/
PS2KbMouse
/
kb.c
diff --git
a/Modules/Input/PS2KbMouse/kb.c
b/Modules/Input/PS2KbMouse/kb.c
index
07170a2
..
d8ef32e
100644
(file)
--- a/
Modules/Input/PS2KbMouse/kb.c
+++ b/
Modules/Input/PS2KbMouse/kb.c
@@
-55,16
+55,19
@@
Uint8 gbaKB_States[3][256];
*/
int KB_Install(char **Arguments)
{
*/
int KB_Install(char **Arguments)
{
- Uint8 temp;
-
- // Attempt to get around a strange bug in Bochs/Qemu by toggling
- // the controller on and off
- temp = inb(0x61);
- outb(0x61, temp | 0x80);
- outb(0x61, temp & 0x7F);
- inb(0x60); // Clear keyboard buffer
IRQ_AddHandler(1, KB_IRQHandler);
IRQ_AddHandler(1, KB_IRQHandler);
+
+ {
+ Uint8 temp;
+ // Attempt to get around a strange bug in Bochs/Qemu by toggling
+ // the controller on and off
+ temp = inb(0x61);
+ outb(0x61, temp | 0x80);
+ outb(0x61, temp & 0x7F);
+ inb(0x60); // Clear keyboard buffer
+ }
+
DevFS_AddDevice( &gKB_DevInfo );
//Log("KB_Install: Installed");
return MODULE_ERR_OK;
DevFS_AddDevice( &gKB_DevInfo );
//Log("KB_Install: Installed");
return MODULE_ERR_OK;
UCC
git Repository :: git.ucc.asn.au