Move interrupt mod

master
WangRunji 7 years ago
parent d330bd8224
commit 5b91db9d76

@ -4,5 +4,4 @@ pub mod apic;
pub mod mp; pub mod mp;
pub mod serial; pub mod serial;
pub mod pic; pub mod pic;
pub mod console; pub mod console;
pub mod interrupt;

@ -1,5 +1,6 @@
pub mod driver; pub mod driver;
pub mod cpu; pub mod cpu;
pub mod interrupt;
pub fn init() { pub fn init() {
cpu::enable_nxe_bit(); cpu::enable_nxe_bit();

@ -86,7 +86,7 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
} else { } else {
arch::driver::pic::init(); arch::driver::pic::init();
} }
arch::driver::interrupt::enable(); arch::interrupt::enable();
loop{} loop{}
test_end!(); test_end!();
} }

Loading…
Cancel
Save