]> git.sur5r.net Git - freertos/commitdiff
Update PIC32 asm code ready for MPLAB compiler V2.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 25 Jul 2011 15:35:54 +0000 (15:35 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 25 Jul 2011 15:35:54 +0000 (15:35 +0000)
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

index ff45856ea249c82906876ef48012b817fc7e5d5a..7dffe7de607e8c8f9eb51b10ab0ee2da2291e178 100644 (file)
 \r
 /******************************************************************/\r
 \r
-       .section        .FreeRTOS, "ax", @progbits\r
+       #if (__C32_VERSION__ >= 2 )\r
+               .section        .FreeRTOS, code\r
+       #else\r
+               .section        .FreeRTOS, "ax", @progbits\r
+       #endif\r
        .set            noreorder\r
        .set            noat\r
        .ent            vT1InterruptHandler\r
@@ -89,7 +93,11 @@ vT1InterruptHandler:
 \r
 /******************************************************************/\r
 \r
-       .section        .FreeRTOS, "ax", @progbits\r
+       #if (__C32_VERSION__ >= 2 )\r
+               .section        .FreeRTOS, code\r
+       #else\r
+               .section        .FreeRTOS, "ax", @progbits\r
+       #endif\r
        .set            noreorder\r
        .set            noat\r
        .ent            xPortStartScheduler\r
@@ -106,7 +114,11 @@ vPortStartFirstTask:
 \r
 /*******************************************************************/\r
 \r
-       .section        .FreeRTOS, "ax", @progbits\r
+       #if (__C32_VERSION__ >= 2 )\r
+               .section        .FreeRTOS, code\r
+       #else\r
+               .section        .FreeRTOS, "ax", @progbits\r
+       #endif\r
        .set            noreorder\r
        .set            noat\r
        .ent            vPortYieldISR\r