xref: /DragonOS/kernel/src/arch/x86_64/driver/apic/c_adapter.rs (revision c635d8a9cfe25bc11779f323ef0c7d7a0f597d4a)
1 use super::{CurrentApic, LocalAPIC};
2 
3 #[no_mangle]
4 pub extern "C" fn rs_apic_init_ap() -> i32 {
5     if CurrentApic.init_current_cpu() {
6         return 0;
7     }
8 
9     return -1;
10 }
11