diff --git a/arch/mips/src/pic32mz/pic32mz-head.S b/arch/mips/src/pic32mz/pic32mz-head.S index 1a100d0cfb..c5674c44b0 100644 --- a/arch/mips/src/pic32mz/pic32mz-head.S +++ b/arch/mips/src/pic32mz/pic32mz-head.S @@ -112,7 +112,7 @@ /* Exported symbols */ - .globl __reset + .global __reset .global __start .global halt .global devcfg @@ -371,7 +371,7 @@ __start: la sp, PIC32MZ_STACK_TOP - /* Initialize the globl pointer (gp). _gp is initialized by the linker + /* Initialize the global pointer (gp). _gp is initialized by the linker * script to point to the "middle" of the small variables region. */ diff --git a/arch/mips/src/pic32mz/pic32mz-irq.c b/arch/mips/src/pic32mz/pic32mz-irq.c index 71fda0c4b7..82283976f6 100644 --- a/arch/mips/src/pic32mz/pic32mz-irq.c +++ b/arch/mips/src/pic32mz/pic32mz-irq.c @@ -129,7 +129,7 @@ static uintptr_t pic32mz_iec(int irq) { if ((unsigned)irq < NR_IRQS) { - return PIC32MZ_INT_IEC_OFFSET(irq); + return PIC32MZ_INT_IEC(irq); } return 0; @@ -143,7 +143,7 @@ static uintptr_t pic32mz_iecset(int irq) { if ((unsigned)irq < NR_IRQS) { - return PIC32MZ_INT_IECSET_OFFSET(irq); + return PIC32MZ_INT_IECSET(irq); } return 0; @@ -157,7 +157,7 @@ static uintptr_t pic32mz_iecclr(int irq) { if ((unsigned)irq < NR_IRQS) { - return PIC32MZ_INT_IECCLR_OFFSET(irq); + return PIC32MZ_INT_IECCLR(irq); } return 0;