diff --git a/Source/portable/MPLAB/PIC32MX/port_asm.S b/Source/portable/MPLAB/PIC32MX/port_asm.S index ff45856ea..7dffe7de6 100644 --- a/Source/portable/MPLAB/PIC32MX/port_asm.S +++ b/Source/portable/MPLAB/PIC32MX/port_asm.S @@ -71,7 +71,11 @@ /******************************************************************/ - .section .FreeRTOS, "ax", @progbits + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vT1InterruptHandler @@ -89,7 +93,11 @@ vT1InterruptHandler: /******************************************************************/ - .section .FreeRTOS, "ax", @progbits + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent xPortStartScheduler @@ -106,7 +114,11 @@ vPortStartFirstTask: /*******************************************************************/ - .section .FreeRTOS, "ax", @progbits + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vPortYieldISR