[IPV6]: remove unused method declaration (net/ndisc.h).
[linux-2.6] / include / asm-sparc64 / kprobes.h
1 #ifndef _SPARC64_KPROBES_H
2 #define _SPARC64_KPROBES_H
3
4 #include <linux/types.h>
5 #include <linux/percpu.h>
6
7 typedef u32 kprobe_opcode_t;
8
9 #define BREAKPOINT_INSTRUCTION   0x91d02070 /* ta 0x70 */
10 #define BREAKPOINT_INSTRUCTION_2 0x91d02071 /* ta 0x71 */
11 #define MAX_INSN_SIZE 2
12
13 #define kretprobe_blacklist_size 0
14
15 #define arch_remove_kprobe(p)   do {} while (0)
16
17 #define ARCH_SUPPORTS_KRETPROBES
18
19 #define flush_insn_slot(p)              \
20 do {    flushi(&(p)->ainsn.insn[0]);    \
21         flushi(&(p)->ainsn.insn[1]);    \
22 } while (0)
23
24 void kretprobe_trampoline(void);
25
26 /* Architecture specific copy of original instruction*/
27 struct arch_specific_insn {
28         /* copy of the original instruction */
29         kprobe_opcode_t insn[MAX_INSN_SIZE];
30 };
31
32 struct prev_kprobe {
33         struct kprobe *kp;
34         unsigned long status;
35         unsigned long orig_tnpc;
36         unsigned long orig_tstate_pil;
37 };
38
39 /* per-cpu kprobe control block */
40 struct kprobe_ctlblk {
41         unsigned long kprobe_status;
42         unsigned long kprobe_orig_tnpc;
43         unsigned long kprobe_orig_tstate_pil;
44         struct pt_regs jprobe_saved_regs;
45         struct prev_kprobe prev_kprobe;
46 };
47
48 extern int kprobe_exceptions_notify(struct notifier_block *self,
49                                     unsigned long val, void *data);
50 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
51 #endif /* _SPARC64_KPROBES_H */