mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
09ee167cbf
commit
a014821340
1 changed files with 0 additions and 35 deletions
|
@ -52,8 +52,6 @@
|
|||
#include <asm/irq_regs.h>
|
||||
#include <asm/smp.h>
|
||||
|
||||
/* #define VERBOSE_SHOWREGS */
|
||||
|
||||
static void sparc64_yield(int cpu)
|
||||
{
|
||||
if (tlb_type != hypervisor)
|
||||
|
@ -253,30 +251,8 @@ void __show_regs(struct pt_regs * regs)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef VERBOSE_SHOWREGS
|
||||
static void idump_from_user (unsigned int *pc)
|
||||
{
|
||||
int i;
|
||||
int code;
|
||||
|
||||
if((((unsigned long) pc) & 3))
|
||||
return;
|
||||
|
||||
pc -= 3;
|
||||
for(i = -3; i < 6; i++) {
|
||||
get_user(code, pc);
|
||||
printk("%c%08x%c",i?' ':'<',code,i?' ':'>');
|
||||
pc++;
|
||||
}
|
||||
printk("\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
void show_regs(struct pt_regs *regs)
|
||||
{
|
||||
#ifdef VERBOSE_SHOWREGS
|
||||
extern long etrap, etraptl1;
|
||||
#endif
|
||||
__show_regs(regs);
|
||||
#if 0
|
||||
#ifdef CONFIG_SMP
|
||||
|
@ -287,17 +263,6 @@ void show_regs(struct pt_regs *regs)
|
|||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef VERBOSE_SHOWREGS
|
||||
if (regs->tpc >= &etrap && regs->tpc < &etraptl1 &&
|
||||
regs->u_regs[14] >= (long)current - PAGE_SIZE &&
|
||||
regs->u_regs[14] < (long)current + 6 * PAGE_SIZE) {
|
||||
printk ("*********parent**********\n");
|
||||
__show_regs((struct pt_regs *)(regs->u_regs[14] + PTREGS_OFF));
|
||||
idump_from_user(((struct pt_regs *)(regs->u_regs[14] + PTREGS_OFF))->tpc);
|
||||
printk ("*********endpar**********\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
struct global_reg_snapshot global_reg_snapshot[NR_CPUS];
|
||||
|
|
Loading…
Reference in a new issue