diff options
author | Michal Simek <monstr@monstr.eu> | 2009-03-27 09:25:27 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-03-27 09:25:27 -0400 |
commit | 2b4384542691fddd309f9324b5a9af976b75e918 (patch) | |
tree | f3efa65d108504d72e228687ccab9c718f1fe7a9 /arch/microblaze/include/asm/ptrace.h | |
parent | 216f03481d2fca7094f5f982a65acfc2ca14fa85 (diff) |
microblaze_v8: ptrace support
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/ptrace.h')
-rw-r--r-- | arch/microblaze/include/asm/ptrace.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/ptrace.h b/arch/microblaze/include/asm/ptrace.h new file mode 100644 index 000000000000..f1f03486428a --- /dev/null +++ b/arch/microblaze/include/asm/ptrace.h | |||
@@ -0,0 +1,68 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2006 Atmark Techno, Inc. | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | */ | ||
8 | |||
9 | #ifndef _ASM_MICROBLAZE_PTRACE_H | ||
10 | #define _ASM_MICROBLAZE_PTRACE_H | ||
11 | |||
12 | #ifndef __ASSEMBLY__ | ||
13 | #include <linux/types.h> | ||
14 | |||
15 | typedef unsigned long microblaze_reg_t; | ||
16 | |||
17 | struct pt_regs { | ||
18 | microblaze_reg_t r0; | ||
19 | microblaze_reg_t r1; | ||
20 | microblaze_reg_t r2; | ||
21 | microblaze_reg_t r3; | ||
22 | microblaze_reg_t r4; | ||
23 | microblaze_reg_t r5; | ||
24 | microblaze_reg_t r6; | ||
25 | microblaze_reg_t r7; | ||
26 | microblaze_reg_t r8; | ||
27 | microblaze_reg_t r9; | ||
28 | microblaze_reg_t r10; | ||
29 | microblaze_reg_t r11; | ||
30 | microblaze_reg_t r12; | ||
31 | microblaze_reg_t r13; | ||
32 | microblaze_reg_t r14; | ||
33 | microblaze_reg_t r15; | ||
34 | microblaze_reg_t r16; | ||
35 | microblaze_reg_t r17; | ||
36 | microblaze_reg_t r18; | ||
37 | microblaze_reg_t r19; | ||
38 | microblaze_reg_t r20; | ||
39 | microblaze_reg_t r21; | ||
40 | microblaze_reg_t r22; | ||
41 | microblaze_reg_t r23; | ||
42 | microblaze_reg_t r24; | ||
43 | microblaze_reg_t r25; | ||
44 | microblaze_reg_t r26; | ||
45 | microblaze_reg_t r27; | ||
46 | microblaze_reg_t r28; | ||
47 | microblaze_reg_t r29; | ||
48 | microblaze_reg_t r30; | ||
49 | microblaze_reg_t r31; | ||
50 | microblaze_reg_t pc; | ||
51 | microblaze_reg_t msr; | ||
52 | microblaze_reg_t ear; | ||
53 | microblaze_reg_t esr; | ||
54 | microblaze_reg_t fsr; | ||
55 | int kernel_mode; | ||
56 | }; | ||
57 | |||
58 | #define kernel_mode(regs) ((regs)->kernel_mode) | ||
59 | #define user_mode(regs) (!kernel_mode(regs)) | ||
60 | |||
61 | #define instruction_pointer(regs) ((regs)->pc) | ||
62 | #define profile_pc(regs) instruction_pointer(regs) | ||
63 | |||
64 | void show_regs(struct pt_regs *); | ||
65 | |||
66 | #endif /* __ASSEMBLY__ */ | ||
67 | |||
68 | #endif /* _ASM_MICROBLAZE_PTRACE_H */ | ||