mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Move PICS import into _start function
This commit is contained in:
@@ -147,6 +147,8 @@ 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
|
||||
|
||||
println!("Hello World{}", "!");
|
||||
|
||||
blog_os::gdt::init();
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
extern crate blog_os;
|
||||
extern crate x86_64;
|
||||
|
||||
use blog_os::interrupts::PICS;
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
/// This function is the entry point, since the linker looks for a function
|
||||
@@ -14,6 +13,8 @@ use core::panic::PanicInfo;
|
||||
#[cfg(not(test))]
|
||||
#[no_mangle] // don't mangle the name of this function
|
||||
pub extern "C" fn _start() -> ! {
|
||||
use blog_os::interrupts::PICS;
|
||||
|
||||
println!("Hello World{}", "!");
|
||||
|
||||
blog_os::gdt::init();
|
||||
|
||||
Reference in New Issue
Block a user