| .. | .. |
|---|
| 8 | 8 | |
|---|
| 9 | 9 | #ifndef __ASM_SH_PROCESSOR_32_H |
|---|
| 10 | 10 | #define __ASM_SH_PROCESSOR_32_H |
|---|
| 11 | | -#ifdef __KERNEL__ |
|---|
| 12 | 11 | |
|---|
| 13 | 12 | #include <linux/compiler.h> |
|---|
| 14 | 13 | #include <linux/linkage.h> |
|---|
| 15 | 14 | #include <asm/page.h> |
|---|
| 16 | 15 | #include <asm/types.h> |
|---|
| 17 | 16 | #include <asm/hw_breakpoint.h> |
|---|
| 18 | | - |
|---|
| 19 | | -/* |
|---|
| 20 | | - * Default implementation of macro that returns current |
|---|
| 21 | | - * instruction pointer ("program counter"). |
|---|
| 22 | | - */ |
|---|
| 23 | | -#define current_text_addr() ({ void *pc; __asm__("mova 1f, %0\n.align 2\n1:":"=z" (pc)); pc; }) |
|---|
| 24 | 17 | |
|---|
| 25 | 18 | /* Core Processor Version Register */ |
|---|
| 26 | 19 | #define CCN_PVR 0xff000030 |
|---|
| .. | .. |
|---|
| 57 | 50 | #define SR_FD 0x00008000 |
|---|
| 58 | 51 | #define SR_MD 0x40000000 |
|---|
| 59 | 52 | |
|---|
| 53 | +#define SR_USER_MASK 0x00000303 // M, Q, S, T bits |
|---|
| 60 | 54 | /* |
|---|
| 61 | 55 | * DSP structure and data |
|---|
| 62 | 56 | */ |
|---|
| .. | .. |
|---|
| 177 | 171 | #define thread_saved_pc(tsk) (tsk->thread.pc) |
|---|
| 178 | 172 | |
|---|
| 179 | 173 | void show_trace(struct task_struct *tsk, unsigned long *sp, |
|---|
| 180 | | - struct pt_regs *regs); |
|---|
| 174 | + struct pt_regs *regs, const char *loglvl); |
|---|
| 181 | 175 | |
|---|
| 182 | 176 | #ifdef CONFIG_DUMP_CODE |
|---|
| 183 | 177 | void show_code(struct pt_regs *regs); |
|---|
| .. | .. |
|---|
| 209 | 203 | } |
|---|
| 210 | 204 | #endif |
|---|
| 211 | 205 | |
|---|
| 212 | | -#endif /* __KERNEL__ */ |
|---|
| 213 | 206 | #endif /* __ASM_SH_PROCESSOR_32_H */ |
|---|