Compiles and works: 2019-07-14

master
Harry Cheng 5 years ago
parent 605680401f
commit 2b4a2b1f1f

@ -1,12 +1,12 @@
use crate::memory::phys_to_virt; use crate::memory::phys_to_virt;
/// Interface for inter-processor interrupt. /// Interface for inter-processor interrupt.
/// This module wraps inter-processor interrupt into a broadcast-calling style. /// This module wraps inter-processor interrupt into a broadcast-calling style.
use alloc::boxed::{Box, FnBox}; use alloc::boxed::{Box};
use alloc::sync::Arc; use alloc::sync::Arc;
use apic::{LocalApic, XApic, LAPIC_ADDR}; use apic::{LocalApic, XApic, LAPIC_ADDR};
use core::sync::atomic::{spin_loop_hint, AtomicU8, Ordering}; use core::sync::atomic::{spin_loop_hint, AtomicU8, Ordering};
pub type IPIEventItem = Box<FnBox()>; pub type IPIEventItem = Box<Fn()>;
unsafe fn get_apic() -> XApic { unsafe fn get_apic() -> XApic {
let mut lapic = XApic::new(phys_to_virt(LAPIC_ADDR)); let mut lapic = XApic::new(phys_to_virt(LAPIC_ADDR));

@ -6,7 +6,6 @@
#![feature(optin_builtin_traits)] #![feature(optin_builtin_traits)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(fnbox)]
#![feature(maybe_uninit)] #![feature(maybe_uninit)]
#![deny(unused_must_use)] #![deny(unused_must_use)]
#![no_std] #![no_std]

@ -1 +1 @@
nightly-2019-04-14 nightly-2019-07-14

Loading…
Cancel
Save