Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正第七章pic8259依赖报错问题 #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 07-hardware-interrupts.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ACPI -------------> | | 键盘 --------------> | |
# in Cargo.toml

[dependencies]
pic8259_simple = "0.1.1"
pic8259 = "0.10.0"
```

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

use pic8259_simple::ChainedPics;
use pic8259::ChainedPics;
use spin;

pub const PIC_1_OFFSET: u8 = 32;
Expand Down