]> git.sur5r.net Git - freertos/commitdiff
Move the ehb instruction in the PIC32/MPLAB port layer.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 13 May 2011 10:42:16 +0000 (10:42 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 13 May 2011 10:42:16 +0000 (10:42 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1418 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/MPLAB/PIC32MX/ISR_Support.h
Source/portable/MPLAB/PIC32MX/port_asm.S

index 9a9caa3afe5fef3d5d10a3668732dd1fe9e6e4df..56b44e22fe4d3c970c476351d9c80bd7c3318909 100644 (file)
        addiu           sp,     sp,     portCONTEXT_SIZE\r
 \r
        mtc0            k0, _CP0_STATUS\r
-       ehb\r
        mtc0            k1, _CP0_EPC\r
+       ehb\r
        eret \r
        nop\r
 \r
index 7c6d4ae8837fc64a5c80cf62765dfa6d16a1c0d4..ad1a7b23a6d526a9a9e1502e7e0a781d4f2cbd1e 100644 (file)
@@ -284,9 +284,9 @@ vPortYieldISR:
        /* Remove stack frame. */\r
        addiu           sp,     sp,     portCONTEXT_SIZE\r
 \r
-       mtc0            k1, _CP0_STATUS\r
-       ehb     \r
+       mtc0            k1, _CP0_STATUS \r
        mtc0            k0, _CP0_EPC\r
+       ehb\r
        eret \r
        nop\r
 \r