Can't print on screen when keyboard interrupt happens

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Shvets04
Member
Member
Posts: 28
Joined: Wed Feb 13, 2019 3:07 pm

Can't print on screen when keyboard interrupt happens

Post by Shvets04 »

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

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.
    

}
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
Octocontrabass
Member
Member
Posts: 5575
Joined: Mon Mar 25, 2013 7:01 pm

Re: Can't print on screen when keyboard interrupt happens

Post by Octocontrabass »

I'm surprised it works at all, since there are many mistakes in boot.asm and boot2.asm. For starters, which one of those are you actually using? You can't possibly be using both!
Post Reply