2000-09-29 13:46:07 +00:00
|
|
|
/*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
|
|
|
#ifndef _MACHINE_SMP_H_
|
|
|
|
#define _MACHINE_SMP_H_
|
|
|
|
|
|
|
|
#ifdef _KERNEL
|
|
|
|
|
2001-04-27 19:28:25 +00:00
|
|
|
/*
|
2001-10-29 02:16:02 +00:00
|
|
|
* Interprocessor interrupts for SMP. The following values are indices
|
|
|
|
* into the IPI vector table. The SAL gives us the vector used for AP
|
2001-12-30 09:41:29 +00:00
|
|
|
* wake-up. We base the other vectors on that. Keep IPI_AP_WAKEUP at
|
2002-05-12 05:54:21 +00:00
|
|
|
* index 0 and IPI_MCA_RENDEZ at index 1. See sal.c for details.
|
2001-04-27 19:28:25 +00:00
|
|
|
*/
|
2002-05-12 05:54:21 +00:00
|
|
|
/* Architecture specific IPIs. */
|
|
|
|
#define IPI_AP_WAKEUP 0
|
2003-05-16 21:26:42 +00:00
|
|
|
#define IPI_HIGH_FP 1
|
2002-05-12 05:54:21 +00:00
|
|
|
#define IPI_MCA_CMCV 2
|
2003-05-16 21:26:42 +00:00
|
|
|
#define IPI_MCA_RENDEZ 3
|
|
|
|
#define IPI_TEST 4
|
2002-05-12 05:54:21 +00:00
|
|
|
/* Machine independent IPIs. */
|
2003-05-16 21:26:42 +00:00
|
|
|
#define IPI_AST 5
|
|
|
|
#define IPI_RENDEZVOUS 6
|
|
|
|
#define IPI_STOP 7
|
2001-10-29 02:16:02 +00:00
|
|
|
|
2003-05-16 21:26:42 +00:00
|
|
|
#define IPI_COUNT 8
|
2000-09-29 13:46:07 +00:00
|
|
|
|
|
|
|
#ifndef LOCORE
|
|
|
|
|
2002-05-12 05:54:21 +00:00
|
|
|
extern int ipi_vector[];
|
2000-09-29 13:46:07 +00:00
|
|
|
|
2001-10-29 02:16:02 +00:00
|
|
|
void ipi_all(int ipi);
|
|
|
|
void ipi_all_but_self(int ipi);
|
|
|
|
void ipi_selected(u_int64_t cpus, int ipi);
|
|
|
|
void ipi_self(int ipi);
|
2003-05-16 21:26:42 +00:00
|
|
|
void ipi_send(u_int64_t lid, int ipi);
|
2000-09-29 13:46:07 +00:00
|
|
|
|
|
|
|
#endif /* !LOCORE */
|
|
|
|
#endif /* _KERNEL */
|
2001-04-27 19:28:25 +00:00
|
|
|
#endif /* !_MACHINE_SMP_H */
|