]> 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:38:19 +0000 (15:38 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 25 Jul 2011 15:38:19 +0000 (15:38 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1504 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/PIC32MX_MPLAB/IntQueueTimer_isr.S
Demo/PIC32MX_MPLAB/RegisterTestTasks.s

index ec1af725aa4bbe1846f93d92f06abcec283ae7d3..f4875e85b9a5be19320f31fb53c1f4a41eed7940 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            vT3InterruptWrapper\r
@@ -88,7 +92,11 @@ vT3InterruptWrapper:
 \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            vT4InterruptWrapper\r
index c1816dae692f2e86fffcc047aaf378519e2ccf7d..2d9393b85d9da357d32b153ac2a4649e2870ebe0 100644 (file)
        .global vRegTest2\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            vRegTest1\r
@@ -203,7 +207,11 @@ vRegTest1:
        .end            vRegTest1\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            vRegTest2\r