diff options
Diffstat (limited to 'arch/mn10300/include/asm/ptrace.h')
-rw-r--r-- | arch/mn10300/include/asm/ptrace.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/mn10300/include/asm/ptrace.h b/arch/mn10300/include/asm/ptrace.h index 7c2e911052b6..c2b77bd3064a 100644 --- a/arch/mn10300/include/asm/ptrace.h +++ b/arch/mn10300/include/asm/ptrace.h | |||
@@ -40,7 +40,6 @@ | |||
40 | #define PT_PC 26 | 40 | #define PT_PC 26 |
41 | #define NR_PTREGS 27 | 41 | #define NR_PTREGS 27 |
42 | 42 | ||
43 | #ifndef __ASSEMBLY__ | ||
44 | /* | 43 | /* |
45 | * This defines the way registers are stored in the event of an exception | 44 | * This defines the way registers are stored in the event of an exception |
46 | * - the strange order is due to the MOVM instruction | 45 | * - the strange order is due to the MOVM instruction |
@@ -75,7 +74,6 @@ struct pt_regs { | |||
75 | unsigned long epsw; | 74 | unsigned long epsw; |
76 | unsigned long pc; | 75 | unsigned long pc; |
77 | }; | 76 | }; |
78 | #endif | ||
79 | 77 | ||
80 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ | 78 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ |
81 | #define PTRACE_GETREGS 12 | 79 | #define PTRACE_GETREGS 12 |
@@ -86,12 +84,13 @@ struct pt_regs { | |||
86 | /* options set using PTRACE_SETOPTIONS */ | 84 | /* options set using PTRACE_SETOPTIONS */ |
87 | #define PTRACE_O_TRACESYSGOOD 0x00000001 | 85 | #define PTRACE_O_TRACESYSGOOD 0x00000001 |
88 | 86 | ||
89 | #if defined(__KERNEL__) | 87 | #ifdef __KERNEL__ |
90 | 88 | ||
89 | #ifdef CONFIG_SMP | ||
90 | extern struct pt_regs *___frame[]; /* current frame pointer */ | ||
91 | #else | ||
91 | extern struct pt_regs *__frame; /* current frame pointer */ | 92 | extern struct pt_regs *__frame; /* current frame pointer */ |
92 | 93 | #endif | |
93 | #if !defined(__ASSEMBLY__) | ||
94 | struct task_struct; | ||
95 | 94 | ||
96 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) | 95 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) |
97 | #define instruction_pointer(regs) ((regs)->pc) | 96 | #define instruction_pointer(regs) ((regs)->pc) |
@@ -100,9 +99,7 @@ extern void show_regs(struct pt_regs *); | |||
100 | 99 | ||
101 | #define arch_has_single_step() (1) | 100 | #define arch_has_single_step() (1) |
102 | 101 | ||
103 | #endif /* !__ASSEMBLY */ | ||
104 | |||
105 | #define profile_pc(regs) ((regs)->pc) | 102 | #define profile_pc(regs) ((regs)->pc) |
106 | 103 | ||
107 | #endif /* __KERNEL__ */ | 104 | #endif /* __KERNEL__ */ |
108 | #endif /* _ASM_PTRACE_H */ | 105 | #endif /* _ASM_PTRACE_H */ |