3 #ifndef _MACHINE_SMP_H_
4 #define _MACHINE_SMP_H_
6 #include <sys/_cpuset.h>
7 #include <machine/pcb.h>
15 IPI_STOP_HARD = IPI_STOP, /* These are synonyms on arm. */
17 IPI_TLB, /* Not used now, but keep it reserved. */
18 IPI_CACHE, /* Not used now, but keep it reserved. */
24 #define IPI_RENDEZVOUS 3
26 #define IPI_STOP_HARD 4
27 #define IPI_HARDCLOCK 6
28 #define IPI_TLB 7 /* Not used now, but keep it reserved. */
29 #define IPI_CACHE 8 /* Not used now, but keep it reserved. */
32 void init_secondary(int cpu);
35 void ipi_all_but_self(u_int ipi);
36 void ipi_cpu(int cpu, u_int ipi);
37 void ipi_selected(cpuset_t cpus, u_int ipi);
41 void pic_ipi_send(cpuset_t cpus, u_int ipi);
42 void pic_ipi_clear(int ipi);
43 int pic_ipi_read(int arg);
46 /* Platform interface */
47 void platform_mp_setmaxid(void);
48 void platform_mp_start_ap(void);
50 /* global data in mp_machdep.c */
51 extern struct pcb stoppcbs[];
53 #endif /* !_MACHINE_SMP_H_ */