arch/mips/src/pic32mX/pic32mX-irq.c: Use the defined CS0 irq number.

This commit is contained in:
Ouss4 2020-02-21 01:11:15 +00:00 committed by patacongo
parent e55118d96d
commit eb1adcafe3
2 changed files with 5 additions and 1 deletions

View File

@ -111,6 +111,10 @@ void up_irqinitialize(void)
up_prioritize_irq(irq, (INT_IPC_MID_PRIORITY << 2));
}
/* Set the Software Interrupt0 to a special priority */
up_prioritize_irq(PIC32MX_IRQSRC_CS0, (CHIP_MAX_PRIORITY - 1) << 2);
/* Set the BEV bit in the STATUS register */
regval = cp0_getstatus();

View File

@ -202,7 +202,7 @@ void up_irqinitialize(void)
/* Set the Software Interrupt0 to a special priority */
pic32mz_prioritize_irq(1, 7 << 2);
pic32mz_prioritize_irq(PIC32MZ_IRQ_CS0, (CHIP_MAX_PRIORITY - 1) << 2);
/* Set the BEV bit in the STATUS register */