From 2e16cc492a359ac7f8efa57edd460be5f1d0dd96 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 20 Jan 2019 17:33:22 +0100 Subject: [PATCH] Add missing import in code example Reported in https://github.com/phil-opp/blog_os/issues/480#issuecomment-455777535 --- .../second-edition/posts/08-hardware-interrupts/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blog/content/second-edition/posts/08-hardware-interrupts/index.md b/blog/content/second-edition/posts/08-hardware-interrupts/index.md index f86e707a..ee9fde7d 100644 --- a/blog/content/second-edition/posts/08-hardware-interrupts/index.md +++ b/blog/content/second-edition/posts/08-hardware-interrupts/index.md @@ -114,6 +114,8 @@ We can now initialize the 8259 PIC from our `_start` function: #[cfg(not(test))] #[no_mangle] pub extern "C" fn _start() -> ! { + use blog_os::interrupts::PICS; // new + println!("Hello World{}", "!"); blog_os::gdt::init(); @@ -141,7 +143,7 @@ Until now nothing happened because interrupts are still disabled in the CPU conf #[cfg(not(test))] #[no_mangle] pub extern "C" fn _start() -> ! { - use blog_os::interrupts::PICS; // new + use blog_os::interrupts::PICS; println!("Hello World{}", "!");