hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/sh/include/asm/processor_32.h
....@@ -8,19 +8,12 @@
88
99 #ifndef __ASM_SH_PROCESSOR_32_H
1010 #define __ASM_SH_PROCESSOR_32_H
11
-#ifdef __KERNEL__
1211
1312 #include <linux/compiler.h>
1413 #include <linux/linkage.h>
1514 #include <asm/page.h>
1615 #include <asm/types.h>
1716 #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; })
2417
2518 /* Core Processor Version Register */
2619 #define CCN_PVR 0xff000030
....@@ -57,6 +50,7 @@
5750 #define SR_FD 0x00008000
5851 #define SR_MD 0x40000000
5952
53
+#define SR_USER_MASK 0x00000303 // M, Q, S, T bits
6054 /*
6155 * DSP structure and data
6256 */
....@@ -177,7 +171,7 @@
177171 #define thread_saved_pc(tsk) (tsk->thread.pc)
178172
179173 void show_trace(struct task_struct *tsk, unsigned long *sp,
180
- struct pt_regs *regs);
174
+ struct pt_regs *regs, const char *loglvl);
181175
182176 #ifdef CONFIG_DUMP_CODE
183177 void show_code(struct pt_regs *regs);
....@@ -209,5 +203,4 @@
209203 }
210204 #endif
211205
212
-#endif /* __KERNEL__ */
213206 #endif /* __ASM_SH_PROCESSOR_32_H */