1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-08 19:12:49 +00:00

Add support for ipi_all_but_self on arm64.

Obtained from:	ABT Systems Ltd
Sponsored by:	The freeBSD Foundation
This commit is contained in:
Andrew Turner 2015-07-08 15:32:59 +00:00
parent 80ad08a3e9
commit ded32d88f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285272

View File

@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$");
#include <sys/cpuset.h>
#include <sys/interrupt.h>
#include <sys/queue.h>
#include <sys/smp.h>
#include <machine/cpufunc.h>
#include <machine/intr.h>
@ -473,9 +474,16 @@ arm_init_secondary(void)
void
ipi_all_but_self(u_int ipi)
{
cpuset_t other_cpus;
/* ARM64TODO: We should support this */
panic("ipi_all_but_self");
other_cpus = all_cpus;
CPU_CLR(PCPU_GET(cpuid), &other_cpus);
/* ARM64TODO: This will be fixed with arm_intrng */
ipi += 16;
CTR2(KTR_SMP, "%s: ipi: %x", __func__, ipi);
PIC_IPI_SEND(root_pic, other_cpus, ipi);
}
void