Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/tc Pullup 1.23 [mhitch]:



details:   https://anonhg.NetBSD.org/src/rev/071dbc57e59d
branches:  netbsd-1-5
changeset: 490160:071dbc57e59d
user:      tv <tv%NetBSD.org@localhost>
date:      Sun Nov 05 22:45:29 2000 +0000

description:
Pullup 1.23 [mhitch]:
When doing the cacheflush for MIPS1, adjust the length to account for
an unaligned buffer.  The last word of the buffer was not getting flushed
if the buffer was unaligned and fit in a single DMA segment.  Now dump(8)
works on both MIPS1 and MIPS3 DECstations.

diffstat:

 sys/dev/tc/asc_ioasic.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9fd693bc99c9 -r 071dbc57e59d sys/dev/tc/asc_ioasic.c
--- a/sys/dev/tc/asc_ioasic.c   Sun Nov 05 22:43:40 2000 +0000
+++ b/sys/dev/tc/asc_ioasic.c   Sun Nov 05 22:45:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asc_ioasic.c,v 1.21.4.1 2000/09/30 01:46:09 mhitch Exp $       */
+/*     $NetBSD: asc_ioasic.c,v 1.21.4.2 2000/11/05 22:45:29 tv Exp $   */
 
 /*
  * Copyright 1996 The Board of Trustees of The Leland Stanford
@@ -174,7 +174,8 @@
        /* If not R4K, need to invalidate cache lines for both physical segments */
        if (!CPUISMIPS3 && flag == ASCDMA_READ) {
                MachFlushDCache(MIPS_PHYS_TO_KSEG0(phys),
-                   nphys == 0xffffffff ?  len : NBPG - (phys & (NBPG - 1)));
+                   nphys == 0xffffffff ?  len + ((vaddr_t)cp & 7) :
+                   NBPG - (phys & (NBPG - 1)));
                if (nphys != 0xffffffff)
                        MachFlushDCache(MIPS_PHYS_TO_KSEG0(nphys),
                            NBPG);      /* XXX */



Home | Main Index | Thread Index | Old Index