mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
intel64/intel64_irq.c: cosmetic change
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5ff6362d0f
commit
f8ec274749
@@ -358,6 +358,7 @@ legacy_pic_irq_handler(int irq, uint32_t *regs, void *arg)
|
|||||||
#ifndef CONFIG_ARCH_INTEL64_DISABLE_INT_INIT
|
#ifndef CONFIG_ARCH_INTEL64_DISABLE_INT_INIT
|
||||||
static void up_ioapic_init(void)
|
static void up_ioapic_init(void)
|
||||||
{
|
{
|
||||||
|
uint32_t maxintr;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
up_map_region((void *)IOAPIC_BASE, HUGE_PAGE_SIZE,
|
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~ */
|
/* 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++)
|
for (i = 0; i < maxintr; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user