smp.h (172256) | smp.h (176734) |
---|---|
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 * | 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: head/sys/i386/include/smp.h 172256 2007-09-20 20:38:43Z attilio $ | 9 * $FreeBSD: head/sys/i386/include/smp.h 176734 2008-03-02 07:58:42Z jeff $ |
10 * 11 */ 12 13#ifndef _MACHINE_SMP_H_ 14#define _MACHINE_SMP_H_ 15 16#ifdef _KERNEL 17 --- 22 unchanged lines hidden (view full) --- 40extern u_long *ipi_invltlb_counts[MAXCPU]; 41extern u_long *ipi_invlrng_counts[MAXCPU]; 42extern u_long *ipi_invlpg_counts[MAXCPU]; 43extern u_long *ipi_invlcache_counts[MAXCPU]; 44extern u_long *ipi_rendezvous_counts[MAXCPU]; 45extern u_long *ipi_lazypmap_counts[MAXCPU]; 46#endif 47 | 10 * 11 */ 12 13#ifndef _MACHINE_SMP_H_ 14#define _MACHINE_SMP_H_ 15 16#ifdef _KERNEL 17 --- 22 unchanged lines hidden (view full) --- 40extern u_long *ipi_invltlb_counts[MAXCPU]; 41extern u_long *ipi_invlrng_counts[MAXCPU]; 42extern u_long *ipi_invlpg_counts[MAXCPU]; 43extern u_long *ipi_invlcache_counts[MAXCPU]; 44extern u_long *ipi_rendezvous_counts[MAXCPU]; 45extern u_long *ipi_lazypmap_counts[MAXCPU]; 46#endif 47 |
48/* global data in identcpu.c */ 49extern int cpu_cores; 50extern int cpu_logical; 51 |
|
48/* IPI handlers */ 49inthand_t 50 IDTVEC(invltlb), /* TLB shootdowns - global */ 51 IDTVEC(invlpg), /* TLB shootdowns - 1 page */ 52 IDTVEC(invlrng), /* TLB shootdowns - page range */ 53 IDTVEC(invlcache), /* Write back and invalidate cache */ 54 IDTVEC(ipi_intr_bitmap_handler), /* Bitmap based IPIs */ 55 IDTVEC(cpustop), /* CPU stops & waits to be restarted */ --- 6 unchanged lines hidden (view full) --- 62void init_secondary(void); 63void ipi_selected(u_int cpus, u_int ipi); 64void ipi_all(u_int ipi); 65void ipi_all_but_self(u_int ipi); 66void ipi_self(u_int ipi); 67void ipi_bitmap_handler(struct trapframe frame); 68u_int mp_bootaddress(u_int); 69int mp_grab_cpu_hlt(void); | 52/* IPI handlers */ 53inthand_t 54 IDTVEC(invltlb), /* TLB shootdowns - global */ 55 IDTVEC(invlpg), /* TLB shootdowns - 1 page */ 56 IDTVEC(invlrng), /* TLB shootdowns - page range */ 57 IDTVEC(invlcache), /* Write back and invalidate cache */ 58 IDTVEC(ipi_intr_bitmap_handler), /* Bitmap based IPIs */ 59 IDTVEC(cpustop), /* CPU stops & waits to be restarted */ --- 6 unchanged lines hidden (view full) --- 66void init_secondary(void); 67void ipi_selected(u_int cpus, u_int ipi); 68void ipi_all(u_int ipi); 69void ipi_all_but_self(u_int ipi); 70void ipi_self(u_int ipi); 71void ipi_bitmap_handler(struct trapframe frame); 72u_int mp_bootaddress(u_int); 73int mp_grab_cpu_hlt(void); |
70void mp_topology(void); | |
71void smp_cache_flush(void); 72void smp_invlpg(vm_offset_t addr); 73void smp_masked_invlpg(u_int mask, vm_offset_t addr); 74void smp_invlpg_range(vm_offset_t startva, vm_offset_t endva); 75void smp_masked_invlpg_range(u_int mask, vm_offset_t startva, 76 vm_offset_t endva); 77void smp_invltlb(void); 78void smp_masked_invltlb(u_int mask); 79 80#ifdef STOP_NMI 81int ipi_nmi_handler(void); 82#endif 83 84#endif /* !LOCORE */ 85#endif /* SMP */ 86 87#endif /* _KERNEL */ 88#endif /* _MACHINE_SMP_H_ */ | 74void smp_cache_flush(void); 75void smp_invlpg(vm_offset_t addr); 76void smp_masked_invlpg(u_int mask, vm_offset_t addr); 77void smp_invlpg_range(vm_offset_t startva, vm_offset_t endva); 78void smp_masked_invlpg_range(u_int mask, vm_offset_t startva, 79 vm_offset_t endva); 80void smp_invltlb(void); 81void smp_masked_invltlb(u_int mask); 82 83#ifdef STOP_NMI 84int ipi_nmi_handler(void); 85#endif 86 87#endif /* !LOCORE */ 88#endif /* SMP */ 89 90#endif /* _KERNEL */ 91#endif /* _MACHINE_SMP_H_ */ |