Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea Stop false uninitialized variable warning.
details: https://anonhg.NetBSD.org/src/rev/f854ad859b2b
branches: trunk
changeset: 554408:f854ad859b2b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Mon Oct 27 23:08:12 2003 +0000
description:
Stop false uninitialized variable warning.
diffstat:
sys/arch/powerpc/oea/pmap.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 63cc7af71caa -r f854ad859b2b sys/arch/powerpc/oea/pmap.c
--- a/sys/arch/powerpc/oea/pmap.c Mon Oct 27 23:06:15 2003 +0000
+++ b/sys/arch/powerpc/oea/pmap.c Mon Oct 27 23:08:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.14 2003/08/24 17:52:35 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.15 2003/10/27 23:08:12 dyoung Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.14 2003/08/24 17:52:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.15 2003/10/27 23:08:12 dyoung Exp $");
#include "opt_altivec.h"
#include "opt_pmap.h"
@@ -769,7 +769,8 @@
{
struct pvo_entry *source_pvo, *victim_pvo, *next_pvo;
struct pvo_entry *pvo;
- struct pvo_tqhead *pvoh, *vpvoh;
+ /* XXX: gcc -- vpvoh is always set at either *1* or *2* */
+ struct pvo_tqhead *pvoh, *vpvoh = NULL;
int ptegidx, i, j;
volatile struct pteg *pteg;
volatile struct pte *pt;
@@ -863,7 +864,7 @@
*/
if ((pt->pte_hi & PTE_HID) == 0 && victim_pvo == NULL &&
pmap_pte_compare(pt, &pvo->pvo_pte)) {
- vpvoh = pvoh;
+ vpvoh = pvoh; /* *1* */
victim_pvo = pvo;
if (source_pvo != NULL)
break;
@@ -884,7 +885,7 @@
* If this is a secondary PTE, we need to search
* its primary pvo bucket for the matching PVO.
*/
- vpvoh = &pmap_pvo_table[ptegidx ^ pmap_pteg_mask];
+ vpvoh = &pmap_pvo_table[ptegidx ^ pmap_pteg_mask]; /* *2* */
TAILQ_FOREACH(pvo, vpvoh, pvo_olink) {
PMAP_PVO_CHECK(pvo); /* sanity check */
Home |
Main Index |
Thread Index |
Old Index