Skip to content

Commit a90993c

Browse files
committed
CRIS: Fixup lookup for delay slot faults
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
1 parent 7c8a25b commit a90993c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/cris/mm/fault.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,11 @@ int
334334
find_fixup_code(struct pt_regs *regs)
335335
{
336336
const struct exception_table_entry *fixup;
337+
/* in case of delay slot fault (v32) */
338+
unsigned long ip = (instruction_pointer(regs) & ~0x1);
337339

338-
if ((fixup = search_exception_tables(instruction_pointer(regs))) != 0) {
340+
fixup = search_exception_tables(ip);
341+
if (fixup != 0) {
339342
/* Adjust the instruction pointer in the stackframe. */
340343
instruction_pointer(regs) = fixup->fixup;
341344
arch_fixup(regs);

0 commit comments

Comments
 (0)