From 02b73b82c10bfa18dc79dfa0e5336d65545bfa6f Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 13 May 2011 10:42:16 +0000 Subject: [PATCH] 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 --- Source/portable/MPLAB/PIC32MX/ISR_Support.h | 2 +- Source/portable/MPLAB/PIC32MX/port_asm.S | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5