Skip to content

Commit 8b32fcc

Browse files
authored
修正第七章pic8259依赖报错问题
参考 phil-opp/blog_os#990
1 parent eaf6f88 commit 8b32fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

07-hardware-interrupts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ACPI -------------> | | 键盘 --------------> | |
7575
# in Cargo.toml
7676

7777
[dependencies]
78-
pic8259_simple = "0.1.1"
78+
pic8259 = "0.10.0"
7979
```
8080

8181
这个包提供的主要抽象是 [`ChainedPics`] 结构,它表示我们上面看到的「主/从二级可编程中断控制器」布局。基于它的设计,我们可以按以下方式来使用它:
@@ -85,7 +85,7 @@ pic8259_simple = "0.1.1"
8585
```rust
8686
// in src/interrupts.rs
8787

88-
use pic8259_simple::ChainedPics;
88+
use pic8259::ChainedPics;
8989
use spin;
9090

9191
pub const PIC_1_OFFSET: u8 = 32;

0 commit comments

Comments
 (0)