summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/apicvar.h
diff options
context:
space:
mode:
authorups <ups@FreeBSD.org>2005-06-09 18:23:54 +0000
committerups <ups@FreeBSD.org>2005-06-09 18:23:54 +0000
commitebc4f240c3a921a47aa18e1e1274a68e4697af00 (patch)
treece9f58fc2524d1af376958ef3e6a1f72303e4660 /sys/amd64/include/apicvar.h
parent63b2db1458e0a9eb49fde35378e2f3720ea41fa7 (diff)
downloadFreeBSD-src-ebc4f240c3a921a47aa18e1e1274a68e4697af00.zip
FreeBSD-src-ebc4f240c3a921a47aa18e1e1274a68e4697af00.tar.gz
Add IPI support for preempting a thread on another CPU.
MFC after: 3 weeks
Diffstat (limited to 'sys/amd64/include/apicvar.h')
-rw-r--r--sys/amd64/include/apicvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/apicvar.h b/sys/amd64/include/apicvar.h
index 9daa0cf..eb05c6a 100644
--- a/sys/amd64/include/apicvar.h
+++ b/sys/amd64/include/apicvar.h
@@ -123,7 +123,8 @@
/* IPIs handled by IPI_BITMAPED_VECTOR (XXX ups is there a better place?) */
#define IPI_AST 0 /* Generate software trap. */
-#define IPI_BITMAP_LAST IPI_AST
+#define IPI_PREEMPT 1
+#define IPI_BITMAP_LAST IPI_PREEMPT
#define IPI_IS_BITMAPED(x) ((x) <= IPI_BITMAP_LAST)
#define IPI_STOP (APIC_IPI_INTS + 6) /* Stop CPU until restarted. */
OpenPOWER on IntegriCloud