[Eric-develop] Good && Bad
Status: Pre-Alpha
Brought to you by:
andrew_turner
|
From: Ismail PAZARBASI<paz...@my...> - 2001-09-05 05:10:26
|
Guys,
I started to use eric kernel in my home. I can boot and see
Welcome message :) anyway, I inserted some code to the kernel.cpp to
initialize the keyboard. but i think i don' t know the sequence or
there is a problem.
First, the void init_kbd() function:
void init_kbd()
{
io kKbd(0x60); // 0x64 is not working in my box
kKbd.outportw(0xF4) // Enable && start scan, empty buffer, return
ACK
}
I then put another function: the reset_kb function:
void reset_kb()
{
io kKbd(0x60);
kKbd.outportw(0xFF);
}
i inserted these functions just beneath the hello message. I can see
lights on the keyboard are blinking. (reset_kbd() first, init_kbd()
second)
I then used another function, the int check_kb():
int check_kb()
{
io kKbd(0x60);
return kKbd.inportb();
}
but this always returned 0xFF (Buffer Overflow). Even though I used
inportw() it return 0xFF... Is there a problem with the sequence of
functions I called?
I forgot to message the whole source while i was home. i will post
it tonight i think.
PS: I lit on scroll lock led :/ but cannot start scan the kbd. I
forgot what else i would tell. anyway, please return about this.
__________________________________________________
=DCCRETS=DDZ E-MAIL ALDINIZ MI?
T=FCrk=E7e ilk Portal http://www.mynet.com
|