Skip to content

Commit

Permalink
try to solve keyboard issue
Browse files Browse the repository at this point in the history
  • Loading branch information
baponkar committed Dec 15, 2024
1 parent 5ea07cf commit d2329b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified iso_root/boot/kernel.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions src/driver/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ void keyboardHandler(registers_t *regs){


void initKeyboard(){
//disable_interrupts();
// disable_interrupts();
interrupt_install_handler(1, &keyboardHandler);
//enable_interrupts();
// enable_interrupts();
print("Successfully Keyboard initialized!\n");
}

Expand Down
6 changes: 3 additions & 3 deletions src/kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ void kmain(void){
// test_interrupt();

initialise_paging();
// test_paging();

init_timer();

initKeyboard();



// Test paging
test_paging();


hcf();
}
Expand Down
2 changes: 1 addition & 1 deletion src/x86_64/idt.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void init_idt(){

void test_interrupt() {
print("Testing Interrupts\n");
print_dec( 104 / 0 ); // Int no 0
// print_dec( 104 / 0 ); // Int no 0
// asm volatile ("int $0x3"); // Breakpoint int no : 3
// asm volatile ("int $0x0"); // Division By Zero, int no : 0
// asm volatile ("int $0xE"); // Page Fault Request, int no: 14
Expand Down

0 comments on commit d2329b1

Please sign in to comment.