software/libbase/isr.c: Fix regression.

This commit is contained in:
Florent Kermarrec 2024-06-14 14:08:22 +02:00
parent 8278ff6622
commit 69008d7d5e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void plic_init(void)
int i; int i;
/* Set priorities for the first 8 external interrupts to 1. */ /* Set priorities for the first 8 external interrupts to 1. */
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
*((unsigned int *)(PLIC_BASE + PLIC_EXT_IRQ_BASE + i)) = 1; *((unsigned int *)PLIC_BASE + PLIC_EXT_IRQ_BASE + i) = 1;
/* Enable the first 8 external interrupts. */ /* Enable the first 8 external interrupts. */
*((unsigned int *)PLIC_ENABLED) = 0xff << PLIC_EXT_IRQ_BASE; *((unsigned int *)PLIC_ENABLED) = 0xff << PLIC_EXT_IRQ_BASE;