Keyboard driver doesnt work
Posted: Wed Sep 13, 2023 10:58 pm
hello i have troubles with keyboard driver
the problem is keyboard driver print character only on first miliseconds of boot if i continue type after bios keyboard doesnt work
keyb.c
init.c keyb code
if i type with if (scan & 0x80) it doesnt work
but without it prints but only on first second of boot when i type after one second it doesnt print
the problem is keyboard driver print character only on first miliseconds of boot if i continue type after bios keyboard doesnt work
keyb.c
Code: Select all
void getc() {
int i, scancode;
scancode = inw(0x60);
for (i = 1000; i < 0; i++) {
return scancode;
}
}
Code: Select all
while ( 1 == 1 ) {
if (scan & 0x80) {
}
else {
kprintf(scan, k++, 0x17);
}
}
but without it prints but only on first second of boot when i type after one second it doesnt print