diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 2b1df77..9a901f5 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -9,6 +9,7 @@ extern crate alloc; | |||
| 9 | 9 | ||
| 10 | mod font; | 10 | mod font; |
| 11 | mod gop; | 11 | mod gop; |
| 12 | mod interrupts; | ||
| 12 | mod memory; | 13 | mod memory; |
| 13 | mod ps2; | 14 | mod ps2; |
| 14 | mod serial; | 15 | mod serial; |
| @@ -127,6 +128,10 @@ pub extern "efiapi" fn efi_main(image_handle: Handle, system_table: *mut SystemT | |||
| 127 | ps2::init(); | 128 | ps2::init(); |
| 128 | serial_println!("ps2: keyboard initialized"); | 129 | serial_println!("ps2: keyboard initialized"); |
| 129 | 130 | ||
| 131 | // Interrupts — IDT, PIC, PIT timer, keyboard IRQ handler | ||
| 132 | interrupts::init(); | ||
| 133 | serial_println!("intr: IDT loaded, PIC remapped, timer ~100 Hz"); | ||
| 134 | |||
| 130 | // Memory: the bump allocator was set up during capture_memory_map. | 135 | // Memory: the bump allocator was set up during capture_memory_map. |
| 131 | // `alloc::Vec`, `alloc::String`, `format!` etc. are now usable. | 136 | // `alloc::Vec`, `alloc::String`, `format!` etc. are now usable. |
| 132 | 137 | ||
