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/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f23f2a8  Fix context switch bug for pic32mx
f23f2a8 is described below

commit f23f2a8557d9cc684c29bc37c5cf04b50e149a13
Author: Brennan Ashton <bash...@brennanashton.com>
AuthorDate: Sun Feb 21 19:54:58 2021 -0800

    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 a8df13e..6ac35e3 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 */
 

Reply via email to