From 8b32fccd6634508b3307c2da7b363185571f528d Mon Sep 17 00:00:00 2001 From: ling jia Date: Mon, 1 Aug 2022 11:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=AC=AC=E4=B8=83=E7=AB=A0pi?= =?UTF-8?q?c8259=E4=BE=9D=E8=B5=96=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考 https://github.com/phil-opp/blog_os/pull/990 --- 07-hardware-interrupts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/07-hardware-interrupts.md b/07-hardware-interrupts.md index c867892..b56e29e 100644 --- a/07-hardware-interrupts.md +++ b/07-hardware-interrupts.md @@ -75,7 +75,7 @@ ACPI -------------> | | 键盘 --------------> | | # in Cargo.toml [dependencies] -pic8259_simple = "0.1.1" +pic8259 = "0.10.0" ``` 这个包提供的主要抽象是 [`ChainedPics`] 结构,它表示我们上面看到的「主/从二级可编程中断控制器」布局。基于它的设计,我们可以按以下方式来使用它: @@ -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;