x86, smp: clean up ->trampoline_phys_low/high handling
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / include / asm / numaq / wakecpu.h
blob8b6c16d8558d024c4a9e8e5dde81c88707fc4a02
1 #ifndef __ASM_NUMAQ_WAKECPU_H
2 #define __ASM_NUMAQ_WAKECPU_H
4 /* This file copes with machines that wakeup secondary CPUs by NMIs */
6 #define NUMAQ_TRAMPOLINE_PHYS_LOW (0x8)
7 #define NUMAQ_TRAMPOLINE_PHYS_HIGH (0xa)
9 /* We don't do anything here because we use NMI's to boot instead */
10 static inline void wait_for_init_deassert(atomic_t *deassert)
15 * Because we use NMIs rather than the INIT-STARTUP sequence to
16 * bootstrap the CPUs, the APIC may be in a weird state. Kick it.
18 static inline void smp_callin_clear_local_apic(void)
20 clear_local_APIC();
23 static inline void store_NMI_vector(unsigned short *high, unsigned short *low)
25 printk("Storing NMI vector\n");
26 *high =
27 *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_HIGH));
28 *low =
29 *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW));
32 static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
34 printk("Restoring NMI vector\n");
35 *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_HIGH)) =
36 *high;
37 *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW)) =
38 *low;
41 static inline void inquire_remote_apic(int apicid)
45 #endif /* __ASM_NUMAQ_WAKECPU_H */