From: richardbarry Date: Mon, 25 Jul 2011 15:38:19 +0000 (+0000) Subject: Update PIC32 asm code ready for MPLAB compiler V2. X-Git-Tag: V7.0.2~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fed205e2e1f707620cb51ba33e1884cba9e7b8d5;p=freertos Update PIC32 asm code ready for MPLAB compiler V2. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1504 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/PIC32MX_MPLAB/IntQueueTimer_isr.S b/Demo/PIC32MX_MPLAB/IntQueueTimer_isr.S index ec1af725a..f4875e85b 100644 --- a/Demo/PIC32MX_MPLAB/IntQueueTimer_isr.S +++ b/Demo/PIC32MX_MPLAB/IntQueueTimer_isr.S @@ -70,7 +70,11 @@ /******************************************************************/ - .section .FreeRTOS, "ax", @progbits + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vT3InterruptWrapper @@ -88,7 +92,11 @@ vT3InterruptWrapper: /******************************************************************/ - .section .FreeRTOS, "ax", @progbits + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vT4InterruptWrapper diff --git a/Demo/PIC32MX_MPLAB/RegisterTestTasks.s b/Demo/PIC32MX_MPLAB/RegisterTestTasks.s index c1816dae6..2d9393b85 100644 --- a/Demo/PIC32MX_MPLAB/RegisterTestTasks.s +++ b/Demo/PIC32MX_MPLAB/RegisterTestTasks.s @@ -63,7 +63,11 @@ .global vRegTest2 -/* .section .FreeRTOS, ax, @progbits */ + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vRegTest1 @@ -203,7 +207,11 @@ vRegTest1: .end vRegTest1 -/* .section .FreeRTOS, ax, @progbits */ + #if (__C32_VERSION__ >= 2 ) + .section .FreeRTOS, code + #else + .section .FreeRTOS, "ax", @progbits + #endif .set noreorder .set noat .ent vRegTest2