From f23f2a8557d9cc684c29bc37c5cf04b50e149a13 Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Sun, 21 Feb 2021 19:54:58 -0800 Subject: [PATCH] Fix context switch bug for pic32mx --- arch/mips/src/pic32mx/pic32mx_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/src/pic32mx/pic32mx_irq.c b/arch/mips/src/pic32mx/pic32mx_irq.c index a8df13ee79..6ac35e3aa5 100644 --- a/arch/mips/src/pic32mx/pic32mx_irq.c +++ b/arch/mips/src/pic32mx/pic32mx_irq.c @@ -113,7 +113,7 @@ void up_irqinitialize(void) /* Set the Software Interrupt0 to a special priority */ - up_prioritize_irq(PIC32MX_IRQSRC_CS0, (CHIP_SW0_PRIORITY << 2)); + up_prioritize_irq(PIC32MX_IRQ_CS0, (CHIP_SW0_PRIORITY << 2)); /* Set the BEV bit in the STATUS register */