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 */ 10 11 #ifndef _MACHINE_SMP_H_ 12 #define _MACHINE_SMP_H_ 13 14 #ifdef _KERNEL 15 16 #ifndef LOCORE 17 18 #include <x86/x86_smp.h> 19 20 /* global symbols in mpboot.S */ 21 extern char mptramp_start[]; 22 extern u_int32_t mptramp_pagetables; 23 24 /* IPI handlers */ 25 inthand_t 26 IDTVEC(justreturn), /* interrupt CPU with minimum overhead */ 27 IDTVEC(justreturn1_pti), 28 IDTVEC(invlop_pti), 29 IDTVEC(invlop), 30 IDTVEC(ipi_intr_bitmap_handler_pti), 31 IDTVEC(ipi_swi_pti), 32 IDTVEC(cpustop_pti), 33 IDTVEC(cpususpend_pti), 34 IDTVEC(rendezvous_pti); 35 36 void invlop_handler(void); 37 int start_all_aps(void); 38 39 #endif /* !LOCORE */ 40 41 #endif /* _KERNEL */ 42 #endif /* _MACHINE_SMP_H_ */ 43