Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/mpc6xx Fix a small buglet in syncicache (if...



details:   https://anonhg.NetBSD.org/src/rev/fe2fc3bca76a
branches:  trunk
changeset: 517066:fe2fc3bca76a
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Nov 06 06:25:28 2001 +0000

description:
Fix a small buglet in syncicache (if the area to sync crosses the
segment 0 boundary).

diffstat:

 sys/arch/powerpc/mpc6xx/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r cc766880de39 -r fe2fc3bca76a sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c    Tue Nov 06 05:44:25 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c    Tue Nov 06 06:25:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.33 2001/11/05 06:44:11 matt Exp $   */
+/*     $NetBSD: pmap.c,v 1.34 2001/11/06 06:25:28 matt Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -1226,8 +1226,8 @@
        static int depth;
        static u_int calls;
        DPRINTFN(SYNCICACHE, ("pmap_syncicache[%d]: pa %#lx\n", depth, pa));
-       if (pa < SEGMENT_LENGTH) {
-               __syncicache((void *)pa, NBPG);
+       if (pa + len <= SEGMENT_LENGTH) {
+               __syncicache((void *)pa, len);
                return;
        }
        if (pmap_initialized) {



Home | Main Index | Thread Index | Old Index