arc: fix update of ERET on exc return

This code path for returning from an exception wasn't
updating ERET with ESF->pc, resulting in any updates to
the PC by the fault handler being ignored.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2018-07-16 10:38:23 -07:00 committed by Anas Nashif
parent f9cd4995ff
commit 17282578a9

View file

@ -149,6 +149,9 @@ _exc_return:
#endif
_exc_return_from_exc:
ld_s r0, [sp, ___isf_t_pc_OFFSET]
sr r0, [_ARC_V2_ERET]
_pop_irq_stack_frame
ld sp, [saved_value]
rtie