diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/cris/mm/fault.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c index 52b32b092603..72dbdbf0accf 100644 --- a/arch/cris/mm/fault.c +++ b/arch/cris/mm/fault.c | |||
@@ -334,8 +334,11 @@ int | |||
334 | find_fixup_code(struct pt_regs *regs) | 334 | find_fixup_code(struct pt_regs *regs) |
335 | { | 335 | { |
336 | const struct exception_table_entry *fixup; | 336 | const struct exception_table_entry *fixup; |
337 | /* in case of delay slot fault (v32) */ | ||
338 | unsigned long ip = (instruction_pointer(regs) & ~0x1); | ||
337 | 339 | ||
338 | if ((fixup = search_exception_tables(instruction_pointer(regs))) != 0) { | 340 | fixup = search_exception_tables(ip); |
341 | if (fixup != 0) { | ||
339 | /* Adjust the instruction pointer in the stackframe. */ | 342 | /* Adjust the instruction pointer in the stackframe. */ |
340 | instruction_pointer(regs) = fixup->fixup; | 343 | instruction_pointer(regs) = fixup->fixup; |
341 | arch_fixup(regs); | 344 | arch_fixup(regs); |