Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Fix an uninitialised variable warning, re...



details:   https://anonhg.NetBSD.org/src/rev/445fa3054c57
branches:  trunk
changeset: 554443:445fa3054c57
user:      scw <scw%NetBSD.org@localhost>
date:      Tue Oct 28 08:22:55 2003 +0000

description:
Fix an uninitialised variable warning, reported by Shoichi Miyake
in port-arm/23293.

diffstat:

 sys/arch/arm/arm32/pmap.c |  17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diffs (39 lines):

diff -r d1a530d23569 -r 445fa3054c57 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Tue Oct 28 08:22:48 2003 +0000
+++ b/sys/arch/arm/arm32/pmap.c Tue Oct 28 08:22:55 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.142 2003/10/26 23:11:15 chris Exp $ */
+/*     $NetBSD: pmap.c,v 1.143 2003/10/28 08:22:55 scw Exp $   */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.142 2003/10/26 23:11:15 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.143 2003/10/28 08:22:55 scw Exp $");
 
 #ifdef PMAP_DEBUG
 
@@ -4891,17 +4891,10 @@
         */
 
        /* Invalidate data and mini-data. */
-       __asm __volatile("mcr p15, 0, %0, c7, c6, 0"
-               :
-               : "r" (auxctl));
-
-
-       __asm __volatile("mrc p15, 0, %0, c1, c0, 1"
-               : "=r" (auxctl));
+       __asm __volatile("mcr p15, 0, %0, c7, c6, 0" : "=r" (auxctl));
+       __asm __volatile("mrc p15, 0, %0, c1, c0, 1" : "=r" (auxctl));
        auxctl = (auxctl & ~XSCALE_AUXCTL_MD_MASK) | XSCALE_AUXCTL_MD_WB_RWA;
-       __asm __volatile("mcr p15, 0, %0, c1, c0, 1"
-               :
-               : "r" (auxctl));
+       __asm __volatile("mcr p15, 0, %0, c1, c0, 1" : : "r" (auxctl));
 }
 
 /*



Home | Main Index | Thread Index | Old Index