summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/apicvar.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2015-03-01 02:31:27 +0000
committerneel <neel@FreeBSD.org>2015-03-01 02:31:27 +0000
commit3ae7b75a649ad4e5651c38025f2ead98925745a6 (patch)
tree4e8f6de885006304f23e00d0f9b777a1bbce0129 /sys/x86/include/apicvar.h
parentb7fc2d31bd98e3cc6900df64e835508d36c05b81 (diff)
downloadFreeBSD-src-3ae7b75a649ad4e5651c38025f2ead98925745a6.zip
FreeBSD-src-3ae7b75a649ad4e5651c38025f2ead98925745a6.tar.gz
Free up the IPI slot used by IPI_STOP_HARD.
Change the numeric value of IPI_STOP_HARD so it doesn't occupy a valid IPI slot. This can be done because IPI_STOP_HARD is actually delivered via NMI. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D1983
Diffstat (limited to 'sys/x86/include/apicvar.h')
-rw-r--r--sys/x86/include/apicvar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/x86/include/apicvar.h b/sys/x86/include/apicvar.h
index 22fe1f3..048b646 100644
--- a/sys/x86/include/apicvar.h
+++ b/sys/x86/include/apicvar.h
@@ -126,7 +126,12 @@
#define IPI_STOP (APIC_IPI_INTS + 7) /* Stop CPU until restarted. */
#define IPI_SUSPEND (APIC_IPI_INTS + 8) /* Suspend CPU until restarted. */
-#define IPI_STOP_HARD (APIC_IPI_INTS + 9) /* Stop CPU with a NMI. */
+
+/*
+ * IPI_STOP_HARD does not need to occupy a slot in the IPI vector space since
+ * it is delivered using an NMI anyways.
+ */
+#define IPI_STOP_HARD 255 /* Stop CPU with a NMI. */
/*
* The spurious interrupt can share the priority class with the IPIs since
OpenPOWER on IntegriCloud