From 505da95828d80df15296d583fc935a47073fa060 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 25 Jul 2011 15:35:54 +0000 Subject: [PATCH] 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 --- 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 -- 2.39.5