Can't print on screen when keyboard interrupt happens
Posted: Sun Apr 12, 2020 10:35 am
hi, i want to implement simple shell in text screen mode.
i've implemented interrupts, and keyboard driver, but i cant put char on screen when intterrupt happens.
this is my keyboard handler
the dlog() just print text on terminal(for debug) and it function work correctly.
how to solve this problem?
code - https://github.com/s04v/OSv1.0
i've implemented interrupts, and keyboard driver, but i cant put char on screen when intterrupt happens.
this is my keyboard handler
Code: Select all
static void keyboard_callback(registers_t regs) {
kprintf("int"); // for debug only, but anyway it does not print anything on screen;
dlog("key int"); // it works
u8 scancode = inb(0x60);
char *sc_ascii = convert(scancode, 10);
print_letter(scancode); //<-- it is function that call shell_handler() and it should print text on screen.
}
how to solve this problem?
code - https://github.com/s04v/OSv1.0