Add missing import in code example

Reported in https://github.com/phil-opp/blog_os/issues/480#issuecomment-455777535
This commit is contained in:
Philipp Oppermann
2019-01-20 17:33:22 +01:00
parent f03463bd85
commit 2e16cc492a

View File

@@ -114,6 +114,8 @@ We can now initialize the 8259 PIC from our `_start` function:
#[cfg(not(test))] #[cfg(not(test))]
#[no_mangle] #[no_mangle]
pub extern "C" fn _start() -> ! { pub extern "C" fn _start() -> ! {
use blog_os::interrupts::PICS; // new
println!("Hello World{}", "!"); println!("Hello World{}", "!");
blog_os::gdt::init(); blog_os::gdt::init();
@@ -141,7 +143,7 @@ Until now nothing happened because interrupts are still disabled in the CPU conf
#[cfg(not(test))] #[cfg(not(test))]
#[no_mangle] #[no_mangle]
pub extern "C" fn _start() -> ! { pub extern "C" fn _start() -> ! {
use blog_os::interrupts::PICS; // new use blog_os::interrupts::PICS;
println!("Hello World{}", "!"); println!("Hello World{}", "!");