1 /*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * 9 * $FreeBSD$ 10 * 11 */ 12 13 #ifndef _MACHINE_SMP_H_ 14 #define _MACHINE_SMP_H_ 15 16 #ifdef _KERNEL 17 18 #ifdef SMP 19 20 #ifndef LOCORE 21 22 #include <x86/x86_smp.h> 23 24 /* global symbols in mpboot.S */ 25 extern char mptramp_start[]; 26 extern u_int32_t mptramp_pagetables; 27 28 /* IPI handlers */ 29 inthand_t 30 IDTVEC(justreturn), /* interrupt CPU with minimum overhead */ 31 IDTVEC(justreturn1_pti), 32 IDTVEC(invlop_pti), 33 IDTVEC(invlop), 34 IDTVEC(ipi_intr_bitmap_handler_pti), 35 IDTVEC(ipi_swi_pti), 36 IDTVEC(cpustop_pti), 37 IDTVEC(cpususpend_pti), 38 IDTVEC(rendezvous_pti); 39 40 void invlop_handler(void); 41 int start_all_aps(void); 42 43 #endif /* !LOCORE */ 44 #endif /* SMP */ 45 46 #endif /* _KERNEL */ 47 #endif /* _MACHINE_SMP_H_ */ 48