aboutsummaryrefslogtreecommitdiff
path: root/include/asm-cris/arch-v10/processor.h
diff options
context:
space:
mode:
authorMikael Starvik <mikael.starvik@axis.com>2005-07-27 11:44:27 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 16:25:59 -0700
commitcb09f540a1c5e6c5beb6e82f554d51a1f2c87e67 (patch)
tree869d0be20eb950ea64b7fdcfcbb07082f173cfae /include/asm-cris/arch-v10/processor.h
parente1637f437f1a2e552e0572e02d46e2c395a4ecaf (diff)
[PATCH] CRIS update: arch split
Changes necessary to make the sub-arch split complete. Signed-off-by: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/arch-v10/processor.h')
-rw-r--r--include/asm-cris/arch-v10/processor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v10/processor.h b/include/asm-cris/arch-v10/processor.h
index 9355d8675a5..e23df8dc96e 100644
--- a/include/asm-cris/arch-v10/processor.h
+++ b/include/asm-cris/arch-v10/processor.h
@@ -59,4 +59,12 @@ struct thread_struct {
wrusp(usp); \
} while(0)
+/* Called when handling a kernel bus fault fixup.
+ *
+ * After a fixup we do not want to return by restoring the CPU-state
+ * anymore, so switch frame-types (see ptrace.h)
+ */
+#define arch_fixup(regs) \
+ regs->frametype = CRIS_FRAME_NORMAL;
+
#endif