Deleted Added
full compact
smp.h (123431) smp.h (138528)
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 123431 2003-12-11 03:48:31Z jeff $
9 * $FreeBSD: head/sys/i386/include/smp.h 138528 2004-12-07 20:15:01Z ups $
10 *
11 */
12
13#ifndef _MACHINE_SMP_H_
14#define _MACHINE_SMP_H_
15
16#ifdef _KERNEL
17

--- 32 unchanged lines hidden (view full) ---

50extern struct pcb stoppcbs[];
51extern struct mtx smp_tlb_mtx;
52
53/* IPI handlers */
54inthand_t
55 IDTVEC(invltlb), /* TLB shootdowns - global */
56 IDTVEC(invlpg), /* TLB shootdowns - 1 page */
57 IDTVEC(invlrng), /* TLB shootdowns - page range */
10 *
11 */
12
13#ifndef _MACHINE_SMP_H_
14#define _MACHINE_SMP_H_
15
16#ifdef _KERNEL
17

--- 32 unchanged lines hidden (view full) ---

50extern struct pcb stoppcbs[];
51extern struct mtx smp_tlb_mtx;
52
53/* IPI handlers */
54inthand_t
55 IDTVEC(invltlb), /* TLB shootdowns - global */
56 IDTVEC(invlpg), /* TLB shootdowns - 1 page */
57 IDTVEC(invlrng), /* TLB shootdowns - page range */
58 IDTVEC(hardclock), /* Forward hardclock() */
59 IDTVEC(statclock), /* Forward statclock() */
60 IDTVEC(cpuast), /* Additional software trap on other cpu */
58 IDTVEC(ipi_intr_bitmap_handler), /* Bitmap based IPIs */
61 IDTVEC(cpustop), /* CPU stops & waits to be restarted */
62 IDTVEC(rendezvous), /* handle CPU rendezvous */
63 IDTVEC(lazypmap); /* handle lazy pmap release */
64
65/* functions in mp_machdep.c */
66void cpu_add(u_int apic_id, char boot_cpu);
67void init_secondary(void);
68void ipi_selected(u_int cpus, u_int ipi);
69void ipi_all(u_int ipi);
70void ipi_all_but_self(u_int ipi);
71void ipi_self(u_int ipi);
72void forward_statclock(void);
59 IDTVEC(cpustop), /* CPU stops & waits to be restarted */
60 IDTVEC(rendezvous), /* handle CPU rendezvous */
61 IDTVEC(lazypmap); /* handle lazy pmap release */
62
63/* functions in mp_machdep.c */
64void cpu_add(u_int apic_id, char boot_cpu);
65void init_secondary(void);
66void ipi_selected(u_int cpus, u_int ipi);
67void ipi_all(u_int ipi);
68void ipi_all_but_self(u_int ipi);
69void ipi_self(u_int ipi);
70void forward_statclock(void);
73void forwarded_statclock(struct clockframe frame);
74void forward_hardclock(void);
71void forward_hardclock(void);
75void forwarded_hardclock(struct clockframe frame);
72void ipi_bitmap_handler(struct clockframe frame);
76u_int mp_bootaddress(u_int);
77int mp_grab_cpu_hlt(void);
78void mp_topology(void);
79void smp_invlpg(vm_offset_t addr);
80void smp_masked_invlpg(u_int mask, vm_offset_t addr);
81void smp_invlpg_range(vm_offset_t startva, vm_offset_t endva);
82void smp_masked_invlpg_range(u_int mask, vm_offset_t startva,
83 vm_offset_t endva);
84void smp_invltlb(void);
85void smp_masked_invltlb(u_int mask);
86
87#endif /* !LOCORE */
88#endif /* SMP */
89
90#endif /* _KERNEL */
91#endif /* _MACHINE_SMP_H_ */
73u_int mp_bootaddress(u_int);
74int mp_grab_cpu_hlt(void);
75void mp_topology(void);
76void smp_invlpg(vm_offset_t addr);
77void smp_masked_invlpg(u_int mask, vm_offset_t addr);
78void smp_invlpg_range(vm_offset_t startva, vm_offset_t endva);
79void smp_masked_invlpg_range(u_int mask, vm_offset_t startva,
80 vm_offset_t endva);
81void smp_invltlb(void);
82void smp_masked_invltlb(u_int mask);
83
84#endif /* !LOCORE */
85#endif /* SMP */
86
87#endif /* _KERNEL */
88#endif /* _MACHINE_SMP_H_ */