parent
f6df3c412c
commit
2b813b2acc
@ -1,11 +1,16 @@
|
|||||||
pub use self::ioapic::IOAPIC;
|
pub use self::ioapic::IOAPIC;
|
||||||
pub use self::lapic::{ack, start_ap};
|
pub use self::lapic::{ack, start_ap, lapic_id};
|
||||||
|
|
||||||
mod lapic;
|
mod lapic;
|
||||||
mod ioapic;
|
mod ioapic;
|
||||||
|
|
||||||
pub fn init(lapic_addr: *const (), ioapic_id: u8) {
|
pub fn init(lapic_addr: *const (), ioapic_id: u8) {
|
||||||
assert_has_not_been_called!("apic::init must be called only once");
|
assert_has_not_been_called!("apic::init must be called only once");
|
||||||
self::lapic::init(lapic_addr);
|
self::lapic::set_addr(lapic_addr);
|
||||||
|
self::lapic::init();
|
||||||
self::ioapic::init(ioapic_id);
|
self::ioapic::init(ioapic_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn other_init() {
|
||||||
|
self::lapic::init();
|
||||||
}
|
}
|
Loading…
Reference in new issue