1 #ifndef __ASM_MACH_WAKECPU_H
2 #define __ASM_MACH_WAKECPU_H
4 /* This file copes with machines that wakeup secondary CPUs by NMIs */
6 #define WAKE_SECONDARY_VIA_NMI
8 #define TRAMPOLINE_LOW phys_to_virt(0x8)
9 #define TRAMPOLINE_HIGH phys_to_virt(0xa)
11 #define boot_cpu_apicid boot_cpu_logical_apicid
13 /* We don't do anything here because we use NMI's to boot instead */
14 static inline void wait_for_init_deassert(atomic_t
*deassert
)
19 * Because we use NMIs rather than the INIT-STARTUP sequence to
20 * bootstrap the CPUs, the APIC may be in a weird state. Kick it.
22 static inline void smp_callin_clear_local_apic(void)
27 static inline void store_NMI_vector(unsigned short *high
, unsigned short *low
)
29 printk("Storing NMI vector\n");
30 *high
= *((volatile unsigned short *) TRAMPOLINE_HIGH
);
31 *low
= *((volatile unsigned short *) TRAMPOLINE_LOW
);
34 static inline void restore_NMI_vector(unsigned short *high
, unsigned short *low
)
36 printk("Restoring NMI vector\n");
37 *((volatile unsigned short *) TRAMPOLINE_HIGH
) = *high
;
38 *((volatile unsigned short *) TRAMPOLINE_LOW
) = *low
;
41 #define inquire_remote_apic(apicid) {}
43 #endif /* __ASM_MACH_WAKECPU_H */