summaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2021-05-19 14:21:49 -0700
committerThomas Gleixner <tglx@linutronix.de>2021-05-21 12:36:44 +0200
commitf1b7d45d3f8f3e18e190e71cb54d4b1917300d1d (patch)
tree8dcace42f7a4cbf328695dcfb0cecb2e0a25b58a /tools/arch
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc (diff)
downloadlinux-stable-f1b7d45d3f8f3e18e190e71cb54d4b1917300d1d.tar.gz
linux-stable-f1b7d45d3f8f3e18e190e71cb54d4b1917300d1d.tar.bz2
linux-stable-f1b7d45d3f8f3e18e190e71cb54d4b1917300d1d.zip
x86/irq: Remove unused vectors defines
UV_BAU_MESSAGE is defined but not used anywhere in the kernel. Presumably this is a stale vector number that can be reclaimed. MCE_VECTOR is not an actual vector: #MC is an exception, not an interrupt vector, and as such is correctly described as X86_TRAP_MC. MCE_VECTOR is not used anywhere is the kernel. Note that NMI_VECTOR *is* used; specifically it is the vector number programmed into the APIC LVT when an NMI interrupt is configured. At the moment it is always numerically identical to X86_TRAP_NMI, that is not necessarily going to be the case indefinitely. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Steve Wahl <steve.wahl@hpe.com> Link: https://lore.kernel.org/r/20210519212154.511983-4-hpa@zytor.com
Diffstat (limited to 'tools/arch')
-rw-r--r--tools/arch/x86/include/asm/irq_vectors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/arch/x86/include/asm/irq_vectors.h b/tools/arch/x86/include/asm/irq_vectors.h
index 889f8b1b5b7f..dc71b781be42 100644
--- a/tools/arch/x86/include/asm/irq_vectors.h
+++ b/tools/arch/x86/include/asm/irq_vectors.h
@@ -26,8 +26,8 @@
* This file enumerates the exact layout of them:
*/
+/* This is used as an interrupt vector when programming the APIC. */
#define NMI_VECTOR 0x02
-#define MCE_VECTOR 0x12
/*
* IDT vectors usable for external interrupt sources start at 0x20.
@@ -84,7 +84,7 @@
*/
#define IRQ_WORK_VECTOR 0xf6
-#define UV_BAU_MESSAGE 0xf5
+/* 0xf5 - unused, was UV_BAU_MESSAGE */
#define DEFERRED_ERROR_VECTOR 0xf4
/* Vector on which hypervisor callbacks will be delivered */