Merge branch 'x86/microcode' into x86/urgent, to pick up cleanup
[linux/fpc-iii.git] / arch / avr32 / include / asm / kprobes.h
blob28dfc61ad3840ebb61947f6cd78aa4ad6189294e
1 /*
2 * Kernel Probes (KProbes)
4 * Copyright (C) 2005-2006 Atmel Corporation
5 * Copyright (C) IBM Corporation, 2002, 2004
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 #ifndef __ASM_AVR32_KPROBES_H
12 #define __ASM_AVR32_KPROBES_H
14 #include <asm-generic/kprobes.h>
16 #define BREAKPOINT_INSTRUCTION 0xd673 /* breakpoint */
18 #ifdef CONFIG_KPROBES
19 #include <linux/types.h>
21 typedef u16 kprobe_opcode_t;
22 #define MAX_INSN_SIZE 2
23 #define MAX_STACK_SIZE 64 /* 32 would probably be OK */
25 #define kretprobe_blacklist_size 0
27 #define arch_remove_kprobe(p) do { } while (0)
29 /* Architecture specific copy of original instruction */
30 struct arch_specific_insn {
31 kprobe_opcode_t insn[MAX_INSN_SIZE];
34 struct prev_kprobe {
35 struct kprobe *kp;
36 unsigned int status;
39 /* per-cpu kprobe control block */
40 struct kprobe_ctlblk {
41 unsigned int kprobe_status;
42 struct prev_kprobe prev_kprobe;
43 struct pt_regs jprobe_saved_regs;
44 char jprobes_stack[MAX_STACK_SIZE];
47 extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
48 extern int kprobe_exceptions_notify(struct notifier_block *self,
49 unsigned long val, void *data);
51 #define flush_insn_slot(p) do { } while (0)
53 #endif /* CONFIG_KPROBES */
54 #endif /* __ASM_AVR32_KPROBES_H */