From: richardbarry Date: Fri, 13 May 2011 10:42:16 +0000 (+0000) Subject: Move the ehb instruction in the PIC32/MPLAB port layer. X-Git-Tag: V7.0.1~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02b73b82c10bfa18dc79dfa0e5336d65545bfa6f;p=freertos Move the ehb instruction in the PIC32/MPLAB port layer. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1418 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/MPLAB/PIC32MX/ISR_Support.h b/Source/portable/MPLAB/PIC32MX/ISR_Support.h index 9a9caa3af..56b44e22f 100644 --- a/Source/portable/MPLAB/PIC32MX/ISR_Support.h +++ b/Source/portable/MPLAB/PIC32MX/ISR_Support.h @@ -208,8 +208,8 @@ addiu sp, sp, portCONTEXT_SIZE mtc0 k0, _CP0_STATUS - ehb mtc0 k1, _CP0_EPC + ehb eret nop diff --git a/Source/portable/MPLAB/PIC32MX/port_asm.S b/Source/portable/MPLAB/PIC32MX/port_asm.S index 7c6d4ae88..ad1a7b23a 100644 --- a/Source/portable/MPLAB/PIC32MX/port_asm.S +++ b/Source/portable/MPLAB/PIC32MX/port_asm.S @@ -284,9 +284,9 @@ vPortYieldISR: /* Remove stack frame. */ addiu sp, sp, portCONTEXT_SIZE - mtc0 k1, _CP0_STATUS - ehb + mtc0 k1, _CP0_STATUS mtc0 k0, _CP0_EPC + ehb eret nop