You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/04/22 15:46:16 UTC
(nuttx) 01/04: intel64/intel64_irq.c: cosmetic change
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f8ec274749dbf42750619d7ce5963fd2d2edaebd
Author: p-szafonimateusz <p-...@xiaomi.com>
AuthorDate: Wed Apr 3 11:53:18 2024 +0200
intel64/intel64_irq.c: cosmetic change
Signed-off-by: p-szafonimateusz <p-...@xiaomi.com>
---
arch/x86_64/src/intel64/intel64_irq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86_64/src/intel64/intel64_irq.c b/arch/x86_64/src/intel64/intel64_irq.c
index abfa07a79b..cc82c00deb 100644
--- a/arch/x86_64/src/intel64/intel64_irq.c
+++ b/arch/x86_64/src/intel64/intel64_irq.c
@@ -358,6 +358,7 @@ legacy_pic_irq_handler(int irq, uint32_t *regs, void *arg)
#ifndef CONFIG_ARCH_INTEL64_DISABLE_INT_INIT
static void up_ioapic_init(void)
{
+ uint32_t maxintr;
int i;
up_map_region((void *)IOAPIC_BASE, HUGE_PAGE_SIZE,
@@ -365,7 +366,7 @@ static void up_ioapic_init(void)
/* Setup the IO-APIC, remap the interrupt to 32~ */
- uint32_t maxintr = (up_ioapic_read(IOAPIC_REG_VER) >> 16) & 0xff;
+ maxintr = (up_ioapic_read(IOAPIC_REG_VER) >> 16) & 0xff;
for (i = 0; i < maxintr; i++)
{