removed int_keyboard

warning gets in the way and its not yet implemented anyway
This commit is contained in:
shockrahwow 2019-11-14 17:36:32 -08:00
parent d4108d8b24
commit 8c84915b71

View File

@ -96,14 +96,6 @@ void setup_idt_entry(u32 t_idx, u32 base, u16 sel, u8 type_attrs) {
IDT[t_idx].selector = sel; IDT[t_idx].selector = sel;
} }
void int_keyboard(struct cpu_reg_state* cpu) {
// Get the keycode from the serial buffer
char code = serial_read_buffer(0x60);
if((u8)code < 0x80 || (u8)code > 0x1f) {
putch(code);
}
}
// Generic interrupt handler to be used later on // Generic interrupt handler to be used later on
void interrupt_handler(struct cpu_reg_state* cpu) { void interrupt_handler(struct cpu_reg_state* cpu) {
// treating things on the stack like it were a cpu_reg_state // treating things on the stack like it were a cpu_reg_state
@ -215,4 +207,6 @@ void init_idt() {
setup_idt_entry(45,(u32)irq_handler_13,0x08, 0x8e); setup_idt_entry(45,(u32)irq_handler_13,0x08, 0x8e);
setup_idt_entry(46,(u32)irq_handler_14,0x08, 0x8e); setup_idt_entry(46,(u32)irq_handler_14,0x08, 0x8e);
setup_idt_entry(47,(u32)irq_handler_15,0x08, 0x8e); setup_idt_entry(47,(u32)irq_handler_15,0x08, 0x8e);
// Enable interrupt flags
__asm__ __volatile__("sti");
} }