diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-16 04:41:41 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:13:12 -0500 |
commit | 3d6395cb770b0db9135a853b1742418c99ed2148 (patch) | |
tree | 609b1d8f6d3ff13a312c8eb0ce4f070b644b6e05 /arch/sparc64/kernel/traps.c | |
parent | 135066a21129760e44a51a7ef31d8c861f8ddace (diff) |
[SPARC64]: Fix tl1 trap state capture/dump on SUN4V.
No trap levels above 2 in privileged mode on SUN4V.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/traps.c')
-rw-r--r-- | arch/sparc64/kernel/traps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index bedb2f693c76..5956d0a94009 100644 --- a/arch/sparc64/kernel/traps.c +++ b/arch/sparc64/kernel/traps.c | |||
@@ -73,10 +73,12 @@ struct tl1_traplog { | |||
73 | 73 | ||
74 | static void dump_tl1_traplog(struct tl1_traplog *p) | 74 | static void dump_tl1_traplog(struct tl1_traplog *p) |
75 | { | 75 | { |
76 | int i; | 76 | int i, limit; |
77 | 77 | ||
78 | printk("TRAPLOG: Error at trap level 0x%lx, dumping track stack.\n", | 78 | printk("TRAPLOG: Error at trap level 0x%lx, dumping track stack.\n", |
79 | p->tl); | 79 | p->tl); |
80 | |||
81 | limit = (tlb_type == hypervisor) ? 2 : 4; | ||
80 | for (i = 0; i < 4; i++) { | 82 | for (i = 0; i < 4; i++) { |
81 | printk(KERN_CRIT | 83 | printk(KERN_CRIT |
82 | "TRAPLOG: Trap level %d TSTATE[%016lx] TPC[%016lx] " | 84 | "TRAPLOG: Trap level %d TSTATE[%016lx] TPC[%016lx] " |