From 3f944123d6589f3118ab2141db8850ac3275d8fb Mon Sep 17 00:00:00 2001 From: eeh Date: Sun, 25 Apr 1999 17:23:04 +0000 Subject: [PATCH] Fix uninitialized variable bug in pmap_enter(). --- sys/arch/sparc64/sparc64/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index cb68492c1a2e..e4b26a672718 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.32 1999/04/11 04:04:10 chs Exp $ */ +/* $NetBSD: pmap.c,v 1.33 1999/04/25 17:23:04 eeh Exp $ */ /* #define NO_VCACHE */ /* Don't forget the locked TLB in dostart */ #define HWREF /* #define BOOT_DEBUG */ @@ -1829,6 +1829,7 @@ pmap_enter(pm, va, pa, prot, wired, access_type) tsb_enter(npv->pv_pmap->pm_ctx,(npv->pv_va&PV_VAMASK), pseg_get(npv->pv_pmap, va)); #else + i = ptelookup_va(va); if (tsb[i].tag.tag > 0 && tsb[i].tag.tag == TSB_TAG(0,pm->pm_ctx,va)) { /*