genode/base-foc/patches/fix_exception_ip.patch
2011-12-22 16:19:25 +01:00

16 lines
526 B
Diff

Index: kernel/fiasco/src/kern/arm/thread-arm.cpp
===================================================================
--- kernel/fiasco/src/kern/arm/thread-arm.cpp (revision 38)
+++ kernel/fiasco/src/kern/arm/thread-arm.cpp (working copy)
@@ -258,6 +258,10 @@
&& handle_copro_fault[copro](opcode, ts))
return;
}
+
+ /* check for ARM default GDB breakpoint */
+ if (!(ts->psr & Proc::Status_thumb) && opcode == 0xe7ffdefe)
+ ts->pc -= 4;
}
undef_insn: