aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/uapi/asm/mman.h6
-rw-r--r--arch/sparc/mm/fault_64.c16
2 files changed, 1 insertions, 21 deletions
diff --git a/arch/sparc/include/uapi/asm/mman.h b/arch/sparc/include/uapi/asm/mman.h
index f6f99ec65bb3..cec9f4109687 100644
--- a/arch/sparc/include/uapi/asm/mman.h
+++ b/arch/sparc/include/uapi/asm/mman.h
@@ -22,10 +22,4 @@
22#define MCL_FUTURE 0x4000 /* lock all additions to address space */ 22#define MCL_FUTURE 0x4000 /* lock all additions to address space */
23#define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ 23#define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */
24 24
25#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
26#define MAP_NONBLOCK 0x10000 /* do not block on IO */
27#define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */
28#define MAP_HUGETLB 0x40000 /* create a huge page mapping */
29
30
31#endif /* _UAPI__SPARC_MMAN_H__ */ 25#endif /* _UAPI__SPARC_MMAN_H__ */
diff --git a/arch/sparc/mm/fault_64.c b/arch/sparc/mm/fault_64.c
index 83fda4d9c3b2..2371fb6b97e4 100644
--- a/arch/sparc/mm/fault_64.c
+++ b/arch/sparc/mm/fault_64.c
@@ -38,20 +38,6 @@
38 38
39int show_unhandled_signals = 1; 39int show_unhandled_signals = 1;
40 40
41static inline __kprobes int notify_page_fault(struct pt_regs *regs)
42{
43 int ret = 0;
44
45 /* kprobe_running() needs smp_processor_id() */
46 if (kprobes_built_in() && !user_mode(regs)) {
47 preempt_disable();
48 if (kprobe_running() && kprobe_fault_handler(regs, 0))
49 ret = 1;
50 preempt_enable();
51 }
52 return ret;
53}
54
55static void __kprobes unhandled_fault(unsigned long address, 41static void __kprobes unhandled_fault(unsigned long address,
56 struct task_struct *tsk, 42 struct task_struct *tsk,
57 struct pt_regs *regs) 43 struct pt_regs *regs)
@@ -285,7 +271,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
285 271
286 fault_code = get_thread_fault_code(); 272 fault_code = get_thread_fault_code();
287 273
288 if (notify_page_fault(regs)) 274 if (kprobe_page_fault(regs, 0))
289 goto exit_exception; 275 goto exit_exception;
290 276
291 si_code = SEGV_MAPERR; 277 si_code = SEGV_MAPERR;