Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107505
b: refs/heads/master
c: a014821
h: refs/heads/master
i:
  107503: b295a27
v: v3
  • Loading branch information
David S. Miller committed Jul 31, 2008
1 parent da5edef commit 02f1a37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09ee167cbf3b7390c993c6699ce9fa84e55422bf
refs/heads/master: a014821340f068bea2fd39cb2578a043fc0dfc57
35 changes: 0 additions & 35 deletions trunk/arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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];
Expand Down

0 comments on commit 02f1a37

Please sign in to comment.