]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/um/sys-x86/shared/sysdep/faultinfo_64.h
um: kill includes of sysdep/sigcontext.h from stuff built with kernel headers
[mv-sheeva.git] / arch / um / sys-x86 / shared / sysdep / faultinfo_64.h
index cb917b0d566041c81637793de58d7a7169f2dabc..f811cbe15d623bdf287e7031737ee2a76dfc0538 100644 (file)
@@ -24,6 +24,12 @@ struct faultinfo {
 #define FAULT_WRITE(fi) ((fi).error_code & 2)
 #define FAULT_ADDRESS(fi) ((fi).cr2)
 
+/* This is Page Fault */
+#define SEGV_IS_FIXABLE(fi)    ((fi)->trap_no == 14)
+
+/* No broken SKAS API, which doesn't pass trap_no, here. */
+#define SEGV_MAYBE_FIXABLE(fi) 0
+
 #define PTRACE_FULL_FAULTINFO 1
 
 #endif