OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / bionic / libc / kernel / arch-sh / asm / kgdb.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __KGDB_H
13 #define __KGDB_H
14
15 #include <asm/ptrace.h>
16
17 struct kgdb_regs {
18  unsigned long regs[16];
19  unsigned long pc;
20  unsigned long pr;
21  unsigned long sr;
22  unsigned long gbr;
23  unsigned long mach;
24  unsigned long macl;
25  unsigned long vbr;
26 };
27
28 typedef void (kgdb_debug_hook_t)(struct pt_regs *regs);
29 typedef void (kgdb_bus_error_hook_t)(void);
30
31 struct console;
32
33 #define _JBLEN 9
34 typedef int jmp_buf[_JBLEN];
35
36 #define breakpoint() __asm__ __volatile__("trapa   #0x3c")
37
38 #endif