From fe6284e80794035a005da9bdb6fdf045b2c5e080 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 25 Jul 2011 15:35:54 +0000 Subject: [PATCH] Update PIC32 asm code ready for MPLAB compiler V2. --- Source/portable/MPLAB/PIC32MX/port_asm.S | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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