Still stuck on this dayummed keyboard issue
Posted: Sun Jan 29, 2012 2:54 pm
I made a previous topic here about this same problem in May, and considering the age of that topic and the persistence of this problem, I'm making a new topic.
They way I have my KB isr set up is:
Write scancode to two different buffers
getch functions check for content of the buffers, and if either one is empty, return -'1';
If not empty, return the last char in the buffers.
This works fine and dandy in kernel mode, but the moment I travel to user_land, I hit a page fault. Two, actually. At least now I'm getting an error instead of a frozen box >:/. But anyhow could someone look over my code and help me understand why this is happening?
The full source is at github, http://github.com/casnix/trollos, or the files I think are concerned are attached.
They way I have my KB isr set up is:
Write scancode to two different buffers
getch functions check for content of the buffers, and if either one is empty, return -'1';
If not empty, return the last char in the buffers.
This works fine and dandy in kernel mode, but the moment I travel to user_land, I hit a page fault. Two, actually. At least now I'm getting an error instead of a frozen box >:/. But anyhow could someone look over my code and help me understand why this is happening?
The full source is at github, http://github.com/casnix/trollos, or the files I think are concerned are attached.