x86/irq: Fix comment on IRQ vector layout
PATCH 1/1 x86/irq: Fix comment on IRQ vector layout
commit f5a3562ec9dd ("x86/irq: Reserve a per CPU IDT vector for posted MSIs") changed the first system vector from LOCAL_TIMER_VECTOR to POSTED_MSI_NOTIFICATION_VECTOR. Reflect this change in the vector layout comment as well.
However, instead of pointing to the specific vector, use the FIRST_SYSTEM_VECTOR indirection which essentially refers to the same. This would avoid unnecessary modifications to the same comment whenever additional system vectors get added.
--- arch/x86/include/asm/irq_vectors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/irq_vectors.h +2 -2
@@ -18,8 +18,8 @@* Vectors 0 ... 31 : system traps and exceptions - hardcoded events * Vectors 32 ... 127 : device interrupts * Vector 128 : legacy int80 syscall interface -* Vectors 129 ... LOCAL_TIMER_VECTOR-1 -* Vectors LOCAL_TIMER_VECTOR ... 255 : special interrupts +* Vectors 129 ... FIRST_SYSTEM_VECTOR-1 +* Vectors FIRST_SYSTEM_VECTOR ... 255 : special interrupts * * 64-bit x86 has per CPU IDT tables, 32-bit has one shared IDT table. *
Signature · 1 line
2.34.1
Quoted 20 lines · Sohil Mehta
commit
f5a3562ec9dd("x86/irq: Reserve a per CPU IDT vector for posted MSIs") changed the first system vector fromLOCAL_TIMER_VECTORtoPOSTED_MSI_NOTIFICATION_VECTOR. Reflect this change in the vector layout comment as well.However, instead of pointing to the specific vector, use the
FIRST_SYSTEM_VECTORindirection which essentially refers to the same. This would avoid unnecessary modifications to the same comment whenever additional system vectors get added.Signed-off-by Sohil Mehta <[email protected]>--- arch/x86/include/asm/irq_vectors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/arch/x86/include/asm/irq_vectors.hindex13aea8fc3d45..970a89e7c6b7100644 ---a/arch/x86/include/asm/irq_vectors.h
+++b/arch/x86/include/asm/irq_vectors.h
arch/x86/include/asm/irq_vectors.h line 21
Quoted 6 lines
arch/x86/include/asm/irq_vectors.h +1
-2@@ -18,8 +18,8 @@* Vectors 0 ... 31 : system traps and exceptions - hardcoded events * Vectors 32 ... 127 : device interrupts * Vector 128 : legacy int80 syscall interface -* Vectors 129 ... LOCAL_TIMER_VECTOR-1 -* Vectors LOCAL_TIMER_VECTOR ... 255 : special interrupts +* Vectors 129 ... FIRST_SYSTEM_VECTOR-1
Should this range be explicitly labeled as "device interrupts"?
Thanks,
Jacob
Quoted 9 lines
Quoted 7 lines
* Vectors 0 ... 31 : system traps and exceptions - hardcoded events * Vectors 32 ... 127 : device interrupts * Vector 128 : legacy int80 syscall interface - * Vectors 129 ... LOCAL_TIMER_VECTOR-1 - * Vectors LOCAL_TIMER_VECTOR ... 255 : special interrupts + * Vectors 129 ... FIRST_SYSTEM_VECTOR-1Should this range be explicitly labeled as "device interrupts"?
I thought about that as well. I wasn't sure why it was left out in the first place.
Will change it in the next version unless someone suggests otherwise.
-Sohil