Remove an incorrect store of the SP when displaying information about a
ktlbmiss on the kernel stack. It was showing the temporary SP, not the original SP. Add a display of the first few wired entries of the TLB so when the ktblmiss occurs, the TLB entries mapping the kernel stack can be verified.
This commit is contained in:
parent
c066db370d
commit
f200f89fe7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore_r2000.S,v 1.35 1997/06/22 07:42:57 jonathan Exp $ */
|
||||
/* $NetBSD: locore_r2000.S,v 1.36 1997/06/23 21:45:05 mhitch Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -826,7 +826,6 @@ NLEAF(mips1_TLBMissException)
|
|||
mfc0 a1, MIPS_COP_0_EXC_PC
|
||||
sw a2, 16(sp)
|
||||
sw a3, 20(sp)
|
||||
sw sp, 24(sp)
|
||||
move a2, ra
|
||||
jal _C_LABEL(printf)
|
||||
mfc0 a3, MIPS_COP_0_BAD_VADDR
|
||||
|
@ -835,6 +834,10 @@ NLEAF(mips1_TLBMissException)
|
|||
.asciiz "ktlbmiss: PC %x RA %x ADR %x\nSR %x CR %x SP %x\n"
|
||||
.text
|
||||
|
||||
li a0,0
|
||||
jal _C_LABEL(mips1_dump_tlb)
|
||||
li a1,3 # BDslot
|
||||
|
||||
la sp, start - START_FRAME # set sp to a valid place
|
||||
PANIC("kernel stack overflow")
|
||||
.set at
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore_r4000.S,v 1.36 1997/06/22 07:42:59 jonathan Exp $ */
|
||||
/* $NetBSD: locore_r4000.S,v 1.37 1997/06/23 21:45:11 mhitch Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
|
||||
|
@ -1093,6 +1093,10 @@ sys_stk_chk:
|
|||
.asciiz "ktlbmiss: PC %x RA %x ADR %x\nSR %x CR %x SP %x\n"
|
||||
.text
|
||||
|
||||
li a0, 0
|
||||
jal mips3_dump_tlb
|
||||
li a1, 2 # BDslot
|
||||
|
||||
la sp, start - START_FRAME # set sp to a valid place
|
||||
#ifdef DEBUG
|
||||
# break MIPS_BREAK_SOVER_VAL
|
||||
|
|
Loading…
Reference in New Issue