mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Add missing import in code example
This commit is contained in:
@@ -172,6 +172,8 @@ As we see from the graphic [above](#the-8259-pic), the timer uses line 0 of the
|
|||||||
```rust
|
```rust
|
||||||
// in src/interrupts.rs
|
// in src/interrupts.rs
|
||||||
|
|
||||||
|
use crate::print;
|
||||||
|
|
||||||
pub const TIMER_INTERRUPT_ID: u8 = PIC_1_OFFSET; // new
|
pub const TIMER_INTERRUPT_ID: u8 = PIC_1_OFFSET; // new
|
||||||
|
|
||||||
[…]
|
[…]
|
||||||
|
|||||||
Reference in New Issue
Block a user