From d25ef6ed44c7ed1a00e04ae55cfe6aaa3fe39ec3 Mon Sep 17 00:00:00 2001 From: "Charles E. Youse" Date: Thu, 4 Jul 2019 10:57:38 -0700 Subject: [PATCH] arch/x86/pcie: use Z_IRQ_TO_INTERRUPT_VECTOR() macro The _irq_to_interrupt_vector[] array shouldn't be accessed directly, as there is a macro for this. Signed-off-by: Charles E. Youse --- arch/x86/core/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/core/pcie.c b/arch/x86/core/pcie.c index b791ace6056..6bf284bff2c 100644 --- a/arch/x86/core/pcie.c +++ b/arch/x86/core/pcie.c @@ -81,7 +81,7 @@ u32_t pcie_msi_map(unsigned int irq) u16_t pcie_msi_mdr(unsigned int irq) { - unsigned char vector = _irq_to_interrupt_vector[irq]; + unsigned char vector = Z_IRQ_TO_INTERRUPT_VECTOR(irq); return 0x4000U | vector; /* edge triggered */ }