Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm / mm / fault.c
index 5835e63454ff6d21f40aeb4633515cfb9b474ccd..23b0b03af5ea84b8a01e10c59a97091d92f4618b 100644 (file)
@@ -607,6 +607,17 @@ static int __init exceptions_init(void)
                                "I-cache maintenance fault");
        }
 
+       if (cpu_architecture() >= CPU_ARCH_ARMv7) {
+               /*
+                * TODO: Access flag faults introduced in ARMv6K.
+                * Runtime check for 'K' extension is needed
+                */
+               hook_fault_code(3, do_bad, SIGSEGV, SEGV_MAPERR,
+                               "section access flag fault");
+               hook_fault_code(6, do_bad, SIGSEGV, SEGV_MAPERR,
+                               "section access flag fault");
+       }
+
        return 0;
 }