diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 18:54:47 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 18:54:47 +0000 |
commit | 75e0b83b6df4e4439d807344a92acd009d8e8207 (patch) | |
tree | e53a17e91c6f99e10bc508ca42f9e28f77561190 /sys | |
parent | 0bdb0d35917022752b06491577588f1290d9b49f (diff) |
Be sure to always check tlbp return values for strictly negative values
to consider the probe as failed; tlb pair #0 does not deserve to be magic
in any way.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mips64/mips64/tlbhandler.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/tlbhandler.S b/sys/arch/mips64/mips64/tlbhandler.S index 36a31c1dcf1..5adeb393ec7 100644 --- a/sys/arch/mips64/mips64/tlbhandler.S +++ b/sys/arch/mips64/mips64/tlbhandler.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tlbhandler.S,v 1.22 2009/11/19 20:16:27 miod Exp $ */ +/* $OpenBSD: tlbhandler.S,v 1.23 2009/12/07 18:54:46 miod Exp $ */ /* * Copyright (c) 1995-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -206,7 +206,7 @@ NLEAF(k_tlb_inv, 0) nop mfc0 k0, COP_0_TLB_INDEX - blez k0, sys_stk_chk # probe fail or index 0! + bltz k0, sys_stk_chk # probe fail lw k0, 0(k1) # get PTE entry dsll k0, k0, 34 # get rid of "wired" bit @@ -245,7 +245,7 @@ NLEAF(k_tlb_inv, 0) k_tlb_inv_odd: mfc0 k0, COP_0_TLB_INDEX - blez k0, sys_stk_chk # probe fail or index 0! + bltz k0, sys_stk_chk # probe fail lw k0, 0(k1) # get PTE entry dsll k0, k0, 34 # get rid of wired bit |