6f04e7b9aa
all to date and the latter also is only used in ia64 and powerpc code which no longer serves a real purpose after bring-up and just can be removed as well. Note that architectures like sun4u also provide no means of implementing IPI'ing a CPU itself natively in the first place. Suggested by: jhb Reviewed by: arch, grehan, jhb
41 lines
856 B
C
41 lines
856 B
C
/*
|
|
* $FreeBSD$
|
|
*/
|
|
#ifndef _MACHINE_SMP_H_
|
|
#define _MACHINE_SMP_H_
|
|
|
|
#ifdef _KERNEL
|
|
|
|
/*
|
|
* Interprocessor interrupts for SMP. The following values are indices
|
|
* into the IPI vector table. The SAL gives us the vector used for AP
|
|
* wake-up. We base the other vectors on that. Keep IPI_AP_WAKEUP at
|
|
* index 0. See sal.c for details.
|
|
*/
|
|
/* Architecture specific IPIs. */
|
|
#define IPI_AP_WAKEUP 0
|
|
#define IPI_HIGH_FP 1
|
|
#define IPI_MCA_CMCV 2
|
|
#define IPI_MCA_RENDEZ 3
|
|
/* Machine independent IPIs. */
|
|
#define IPI_AST 4
|
|
#define IPI_RENDEZVOUS 5
|
|
#define IPI_STOP 6
|
|
#define IPI_PREEMPT 7
|
|
|
|
#define IPI_COUNT 8
|
|
|
|
#ifndef LOCORE
|
|
|
|
struct pcpu;
|
|
|
|
extern int ipi_vector[];
|
|
|
|
void ipi_all_but_self(int ipi);
|
|
void ipi_selected(cpumask_t cpus, int ipi);
|
|
void ipi_send(struct pcpu *, int ipi);
|
|
|
|
#endif /* !LOCORE */
|
|
#endif /* _KERNEL */
|
|
#endif /* !_MACHINE_SMP_H */
|