diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-31 03:58:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-31 03:58:35 -0400 |
commit | a014821340f068bea2fd39cb2578a043fc0dfc57 (patch) | |
tree | 8faa35d362cd2733b59d60b2a5391ea1331dc734 /arch | |
parent | 09ee167cbf3b7390c993c6699ce9fa84e55422bf (diff) |
sparc64: Kill VERBOSE_SHOWREGS code.
It just clutters everything up and even though I wrote that hack I
can't remember having used it in the last 5 years or so.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/process.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index e1eff41809cc..affa43952453 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c | |||
@@ -52,8 +52,6 @@ | |||
52 | #include <asm/irq_regs.h> | 52 | #include <asm/irq_regs.h> |
53 | #include <asm/smp.h> | 53 | #include <asm/smp.h> |
54 | 54 | ||
55 | /* #define VERBOSE_SHOWREGS */ | ||
56 | |||
57 | static void sparc64_yield(int cpu) | 55 | static void sparc64_yield(int cpu) |
58 | { | 56 | { |
59 | if (tlb_type != hypervisor) | 57 | if (tlb_type != hypervisor) |
@@ -253,30 +251,8 @@ void __show_regs(struct pt_regs * regs) | |||
253 | #endif | 251 | #endif |
254 | } | 252 | } |
255 | 253 | ||
256 | #ifdef VERBOSE_SHOWREGS | ||
257 | static void idump_from_user (unsigned int *pc) | ||
258 | { | ||
259 | int i; | ||
260 | int code; | ||
261 | |||
262 | if((((unsigned long) pc) & 3)) | ||
263 | return; | ||
264 | |||
265 | pc -= 3; | ||
266 | for(i = -3; i < 6; i++) { | ||
267 | get_user(code, pc); | ||
268 | printk("%c%08x%c",i?' ':'<',code,i?' ':'>'); | ||
269 | pc++; | ||
270 | } | ||
271 | printk("\n"); | ||
272 | } | ||
273 | #endif | ||
274 | |||
275 | void show_regs(struct pt_regs *regs) | 254 | void show_regs(struct pt_regs *regs) |
276 | { | 255 | { |
277 | #ifdef VERBOSE_SHOWREGS | ||
278 | extern long etrap, etraptl1; | ||
279 | #endif | ||
280 | __show_regs(regs); | 256 | __show_regs(regs); |
281 | #if 0 | 257 | #if 0 |
282 | #ifdef CONFIG_SMP | 258 | #ifdef CONFIG_SMP |
@@ -287,17 +263,6 @@ void show_regs(struct pt_regs *regs) | |||
287 | } | 263 | } |
288 | #endif | 264 | #endif |
289 | #endif | 265 | #endif |
290 | |||
291 | #ifdef VERBOSE_SHOWREGS | ||
292 | if (regs->tpc >= &etrap && regs->tpc < &etraptl1 && | ||
293 | regs->u_regs[14] >= (long)current - PAGE_SIZE && | ||
294 | regs->u_regs[14] < (long)current + 6 * PAGE_SIZE) { | ||
295 | printk ("*********parent**********\n"); | ||
296 | __show_regs((struct pt_regs *)(regs->u_regs[14] + PTREGS_OFF)); | ||
297 | idump_from_user(((struct pt_regs *)(regs->u_regs[14] + PTREGS_OFF))->tpc); | ||
298 | printk ("*********endpar**********\n"); | ||
299 | } | ||
300 | #endif | ||
301 | } | 266 | } |
302 | 267 | ||
303 | struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; | 268 | struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; |