diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 14:39:01 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 18:28:47 +0200 |
commit | a90993c693ab7bd72bcb28b105e8dd4f0698f836 (patch) | |
tree | 577445c5e7b4102044a6b3b8293d47a94a2f03a8 /arch/cris/mm | |
parent | 7c8a25b544c1659ad57de2394006fdd449325161 (diff) | |
download | op-kernel-dev-a90993c693ab7bd72bcb28b105e8dd4f0698f836.zip op-kernel-dev-a90993c693ab7bd72bcb28b105e8dd4f0698f836.tar.gz |
CRIS: Fixup lookup for delay slot faults
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/mm')
-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 52b32b0..72dbdbf 100644 --- a/arch/cris/mm/fault.c +++ b/arch/cris/mm/fault.c @@ -334,8 +334,11 @@ int find_fixup_code(struct pt_regs *regs) { const struct exception_table_entry *fixup; + /* in case of delay slot fault (v32) */ + unsigned long ip = (instruction_pointer(regs) & ~0x1); - if ((fixup = search_exception_tables(instruction_pointer(regs))) != 0) { + fixup = search_exception_tables(ip); + if (fixup != 0) { /* Adjust the instruction pointer in the stackframe. */ instruction_pointer(regs) = fixup->fixup; arch_fixup(regs); |