summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/smp.h
blob: e985fc0c70bc2ca162f39551d1a0fca4b84e5e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * $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 and IPI_MCA_RENDEZ at index 1. See sal.c for details.
 */
/* Architecture specific IPIs. */
#define	IPI_AP_WAKEUP		0
#define	IPI_MCA_RENDEZ		1
#define	IPI_MCA_CMCV		2
#define	IPI_TEST		3
/* Machine independent IPIs. */
#define	IPI_AST			4
#define	IPI_RENDEZVOUS		5
#define	IPI_STOP		6

#define	IPI_COUNT		7

#ifndef LOCORE

extern int ipi_vector[];

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);

#endif /* !LOCORE */
#endif /* _KERNEL */
#endif /* !_MACHINE_SMP_H */
OpenPOWER on IntegriCloud