diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-13 11:17:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-13 11:17:52 -0400 |
commit | cec5455e457928153f5a51668dad3d68176feab5 (patch) | |
tree | bf62da1e26096c4cf97e56f8678269112dc306a1 /arch/microblaze/include/asm/ptrace.h | |
parent | b0cbc861a3c05e634520b049b5cc27ad6febb51f (diff) | |
parent | c6375b0a8007fffe65109aeea032a9243df070e1 (diff) |
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
* 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze: (60 commits)
microblaze_v8: Add MAINTAINERS fragment
microblaze_v8: Uartlite for Microblaze
microblaze_v8: Makefiles for Microblaze cpu
microblaze_v8: Kconfig patches
microblaze_v8: Interrupt handling and timer support
microblaze_v8: syscalls.h
microblaze_v8: pci headers
microblaze_v8: Kbuild file
microblaze_v8: string.h thread_info.h
microblaze_v8: unistd.h
microblaze_v8: fcntl.h sockios.h ucontext.h
microblaze_v8: pool.h socket.h
microblaze_v8: device.h param.h topology.h
microblaze_v8: headers files entry.h current.h mman.h registers.h sembuf.h
microblaze_v8: namei.h
microblaze_v8: gpio.h, serial.h
microblaze_v8: headers simple files - empty or redirect to asm-generic
microblaze_v8: sigcontext.h siginfo.h
microblaze_v8: termbits.h termios.h
microblaze_v8: stats headers
...
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 */ | ||