forked from xamidev/pepperOS
Init struct + freeing a bit of kmain()
This commit is contained in:
@@ -17,6 +17,8 @@ uint8_t key_status = 0b00000000;
|
||||
unsigned char* keymap;
|
||||
unsigned char* keymap_shifted;
|
||||
|
||||
extern struct init_status init;
|
||||
|
||||
unsigned char kbdus[128] =
|
||||
{
|
||||
0, 27, '1', '2', '3', '4', '5', '6', '7', '8', /* 9 */
|
||||
@@ -205,6 +207,10 @@ void keyboard_handler()
|
||||
|
||||
if (c)
|
||||
{
|
||||
if (c == '\n')
|
||||
{
|
||||
_putchar('\r');
|
||||
}
|
||||
// Should probably have a keyboard buffer here... instead of this
|
||||
_putchar(c);
|
||||
}
|
||||
@@ -247,4 +253,5 @@ void keyboard_init(unsigned char layout)
|
||||
outb(0x21, mask);
|
||||
|
||||
DEBUG("PS/2 Keyboard initialized");
|
||||
init.keyboard = true;
|
||||
}
|
||||
Reference in New Issue
Block a user