|
@@ -49,15 +49,19 @@
|
|
|
#define VM_FAULT_BADCONTEXT 0x010000
|
|
|
#define VM_FAULT_BADMAP 0x020000
|
|
|
#define VM_FAULT_BADACCESS 0x040000
|
|
|
-#define VM_FAULT_SIGNAL 0x080000
|
|
|
+#define VM_FAULT_SIGNAL 0x080000
|
|
|
|
|
|
-static unsigned long store_indication;
|
|
|
+static unsigned long store_indication __read_mostly;
|
|
|
|
|
|
-void fault_init(void)
|
|
|
+#ifdef CONFIG_64BIT
|
|
|
+static int __init fault_init(void)
|
|
|
{
|
|
|
- if (test_facility(2) && test_facility(75))
|
|
|
+ if (test_facility(75))
|
|
|
store_indication = 0xc00;
|
|
|
+ return 0;
|
|
|
}
|
|
|
+early_initcall(fault_init);
|
|
|
+#endif
|
|
|
|
|
|
static inline int notify_page_fault(struct pt_regs *regs)
|
|
|
{
|