blob: 0f3e636e6e4dda8d36c89b50f697777f59bdf88d [file] [log] [blame]
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07001/*
2 * Kernel Probes (KProbes)
3 *
4 * Copyright (C) 2005-2006 Atmel Corporation
5 * Copyright (C) IBM Corporation, 2002, 2004
6 *
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.
10 */
11#ifndef __ASM_AVR32_KPROBES_H
12#define __ASM_AVR32_KPROBES_H
13
14#include <linux/types.h>
15
16typedef u16 kprobe_opcode_t;
17#define BREAKPOINT_INSTRUCTION 0xd673 /* breakpoint */
18#define MAX_INSN_SIZE 2
19
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070020#define arch_remove_kprobe(p) do { } while (0)
21
22/* Architecture specific copy of original instruction */
23struct arch_specific_insn {
24 kprobe_opcode_t insn[MAX_INSN_SIZE];
25};
26
Christoph Hellwig9caebec2007-05-12 17:56:11 +020027extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070028extern int kprobe_exceptions_notify(struct notifier_block *self,
29 unsigned long val, void *data);
30
31#define flush_insn_slot(p) do { } while (0)
32
33#endif /* __ASM_AVR32_KPROBES_H */