Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 pmap_enter: fix an uninitialized variable...
details: https://anonhg.NetBSD.org/src/rev/3a6cf0de2efd
branches: trunk
changeset: 583562:3a6cf0de2efd
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Aug 12 10:04:24 2005 +0000
description:
pmap_enter: fix an uninitialized variable bug which can cause
"TLB IPI rendezvous failed".
diffstat:
sys/arch/i386/i386/pmap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 9e2b3fcf02e4 -r 3a6cf0de2efd sys/arch/i386/i386/pmap.c
--- a/sys/arch/i386/i386/pmap.c Fri Aug 12 10:02:31 2005 +0000
+++ b/sys/arch/i386/i386/pmap.c Fri Aug 12 10:04:24 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.183 2005/05/29 15:58:33 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.184 2005/08/12 10:04:24 yamt Exp $ */
/*
*
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183 2005/05/29 15:58:33 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.184 2005/08/12 10:04:24 yamt Exp $");
#include "opt_cputype.h"
#include "opt_user_ldt.h"
@@ -3421,10 +3421,12 @@
/* Update page attributes if needed */
if ((opte & (PG_V | PG_U)) == (PG_V | PG_U)) {
#if defined(MULTIPROCESSOR)
- int32_t cpumask = 0;
+ int32_t cpumask;
#endif
shootdown_now:
#if defined(MULTIPROCESSOR)
+ cpumask = 0;
+
pmap_tlb_shootdown(pmap, va, opte, &cpumask);
pmap_tlb_shootnow(cpumask);
#else
Home |
Main Index |
Thread Index |
Old Index