1 /* two abstractions specific to kernel/smpboot.c, mainly to cater to visws
2 * which needs to alter them. */
4 static inline void smpboot_clear_io_apic_irqs(void)
6 #ifdef CONFIG_X86_IO_APIC
11 static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip
)
15 spin_lock_irqsave(&rtc_lock
, flags
);
17 spin_unlock_irqrestore(&rtc_lock
, flags
);
20 *((volatile unsigned short *)phys_to_virt(apic
->trampoline_phys_high
)) =
23 *((volatile unsigned short *)phys_to_virt(apic
->trampoline_phys_low
)) =
28 static inline void smpboot_restore_warm_reset_vector(void)
33 * Install writable page 0 entry to set BIOS data area.
38 * Paranoid: Set warm reset code and vector here back
41 spin_lock_irqsave(&rtc_lock
, flags
);
43 spin_unlock_irqrestore(&rtc_lock
, flags
);
45 *((volatile u32
*)phys_to_virt(apic
->trampoline_phys_low
)) = 0;
48 static inline void __init
smpboot_setup_io_apic(void)
50 #ifdef CONFIG_X86_IO_APIC
52 * Here we can be sure that there is an IO-APIC in the system. Let's
55 if (!skip_ioapic_setup
&& nr_ioapics
)
63 static inline void smpboot_clear_io_apic(void)
65 #ifdef CONFIG_X86_IO_APIC