From 7981d8b03c48afd0ff7c80dab1b8bed27c55c3da Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 22 Aug 2025 22:14:40 -0400 Subject: kernel/amd64: ipi: Make halt IPI more direct This commit assigns the halt IPI its own vector so that it may be dispatched fast without needing to go through the IPI path as it is typically used only in very sensitive situations. Signed-off-by: Ian Moffett --- sys/include/arch/amd64/ipi.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sys/include') diff --git a/sys/include/arch/amd64/ipi.h b/sys/include/arch/amd64/ipi.h index 452d006..48243e7 100644 --- a/sys/include/arch/amd64/ipi.h +++ b/sys/include/arch/amd64/ipi.h @@ -34,9 +34,16 @@ #include #include +/* + * IPI_VECTOR is the main vector used for all misc + * IPIs, the HALT_VECTOR is used to slam the system + * to a screetching halt. + */ +#define IPI_VECTOR 0x21 +#define HALT_VECTOR 0x22 + /* Fixed IPI IDs */ -#define IPI_HALT 0 -#define IPI_TLB 1 +#define IPI_TLB 0 /* * Represents an interprocessor interrupt -- cgit v1.2.3