2005-01-05 20:05:52 +00:00
|
|
|
/*-
|
2000-09-07 01:33:02 +00:00
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
|
|
* <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
|
|
|
|
* can do whatever you want with this stuff. If we meet some day, and you think
|
|
|
|
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*
|
2000-03-30 06:44:50 +00:00
|
|
|
* $FreeBSD$
|
2000-09-07 01:33:02 +00:00
|
|
|
*
|
2000-03-30 06:44:50 +00:00
|
|
|
*/
|
2000-09-07 01:33:02 +00:00
|
|
|
|
2000-03-30 06:44:50 +00:00
|
|
|
#ifndef _MACHINE_SMP_H_
|
|
|
|
#define _MACHINE_SMP_H_
|
|
|
|
|
2000-09-07 01:33:02 +00:00
|
|
|
#ifdef _KERNEL
|
|
|
|
|
2001-04-27 19:28:25 +00:00
|
|
|
/*
|
|
|
|
* Interprocessor interrupts for SMP.
|
|
|
|
*/
|
|
|
|
#define IPI_INVLTLB 0x0001
|
|
|
|
#define IPI_RENDEZVOUS 0x0002
|
|
|
|
#define IPI_AST 0x0004
|
|
|
|
#define IPI_CHECKSTATE 0x0008
|
|
|
|
#define IPI_STOP 0x0010
|
2000-09-07 01:33:02 +00:00
|
|
|
|
|
|
|
#ifndef LOCORE
|
|
|
|
|
2004-11-05 19:16:44 +00:00
|
|
|
extern u_int64_t boot_cpu_id;
|
2005-11-03 21:08:20 +00:00
|
|
|
extern struct pcb stoppcbs[];
|
2000-09-07 01:33:02 +00:00
|
|
|
|
2001-04-27 19:28:25 +00:00
|
|
|
void ipi_selected(u_int cpus, u_int64_t ipi);
|
|
|
|
void ipi_all(u_int64_t ipi);
|
|
|
|
void ipi_all_but_self(u_int64_t ipi);
|
|
|
|
void ipi_self(u_int64_t ipi);
|
|
|
|
void smp_handle_ipi(struct trapframe *frame);
|
2000-09-07 01:33:02 +00:00
|
|
|
void smp_init_secondary(void);
|
2000-03-30 06:44:50 +00:00
|
|
|
|
2000-09-07 01:33:02 +00:00
|
|
|
#endif /* !LOCORE */
|
|
|
|
#endif /* _KERNEL */
|
|
|
|
#endif /* _MACHINE_SMP_H_ */
|