summaryrefslogtreecommitdiff
path: root/include/asm-arm/system.h
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2002-06-05 14:57:54 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2002-06-05 14:57:54 +0100
commit75fb1f976e7b45a585ecdb214a6027e271a44dbf (patch)
tree3ce1cc765fcda2f76660917c60842b0b74ae4d99 /include/asm-arm/system.h
parentea1e2d6259e83d6fae83473f7b90a683ec770322 (diff)
[ARM] Generic hook for page faults
Provide a method where various other parts of the kernel (eg, alignment fault handler, PCI subsystems, etc) can hook into the page fault processing to handle alignment and PCI faults respectively.
Diffstat (limited to 'include/asm-arm/system.h')
-rw-r--r--include/asm-arm/system.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h
index 67f15f1be682..d9a68af9d5f9 100644
--- a/include/asm-arm/system.h
+++ b/include/asm-arm/system.h
@@ -24,6 +24,17 @@ extern int have_isa_bridge;
#define have_isa_bridge (0)
#endif
+struct pt_regs;
+
+void die(const char *msg, struct pt_regs *regs, int err)
+ __attribute__((noreturn));
+
+void die_if_kernel(const char *str, struct pt_regs *regs, int err);
+
+void hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
+ struct pt_regs *),
+ int sig, const char *name);
+
#include <asm/proc-fns.h>
#define xchg(ptr,x) \