diff options
Diffstat (limited to 'kernel/src/interrupts')
-rw-r--r-- | kernel/src/interrupts/interrupt_handlers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/src/interrupts/interrupt_handlers.rs b/kernel/src/interrupts/interrupt_handlers.rs index 831211b..defe549 100644 --- a/kernel/src/interrupts/interrupt_handlers.rs +++ b/kernel/src/interrupts/interrupt_handlers.rs @@ -3,7 +3,7 @@ use x86_64::structures::idt::InterruptStackFrame; use x86_64::structures::port; pub extern "x86-interrupt" fn timer_handler(_stack_frame: &mut InterruptStackFrame) { - crate::io::vga_text::OStream::new().print(b"Timer"); + crate::vga_println!("Timer"); if let Some(apic) = unsafe { super::apic::get_local_apic() } { apic.end_of_interrupt() @@ -12,7 +12,7 @@ pub extern "x86-interrupt" fn timer_handler(_stack_frame: &mut InterruptStackFra pub extern "x86-interrupt" fn keyboard_handler(_stack_frame: &mut InterruptStackFrame) { let code: u8 = unsafe { port::PortRead::read_from_port(0x60) }; - let _ = write!(crate::io::vga_text::OStream::new(), "{}", code); + crate::vga_println!("{}", code); if let Some(apic) = unsafe { super::apic::get_local_apic() } { apic.end_of_interrupt() } |