From: richardbarry Date: Mon, 25 Jul 2011 15:35:54 +0000 (+0000) Subject: Update PIC32 asm code ready for MPLAB compiler V2. X-Git-Tag: V7.0.2~107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=505da95828d80df15296d583fc935a47073fa060;p=freertos Update PIC32 asm code ready for MPLAB compiler V2. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1503 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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