Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/vax/vax Pullup 1.9 [matt]:



details:   https://anonhg.NetBSD.org/src/rev/0730140cadc5
branches:  netbsd-1-5
changeset: 490264:0730140cadc5
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Nov 16 20:37:43 2000 +0000

description:
Pullup 1.9 [matt]:
Commit changes to SCSI working on the VS4000/9x.  "Don't overthink the
plumbing!  Duh!".

diffstat:

 sys/arch/vax/vax/sgmap.c |  18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diffs (32 lines):

diff -r 68fb2291e181 -r 0730140cadc5 sys/arch/vax/vax/sgmap.c
--- a/sys/arch/vax/vax/sgmap.c  Thu Nov 16 20:37:22 2000 +0000
+++ b/sys/arch/vax/vax/sgmap.c  Thu Nov 16 20:37:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sgmap.c,v 1.7 2000/05/23 23:47:28 matt Exp $ */
+/* $NetBSD: sgmap.c,v 1.7.4.1 2000/11/16 20:37:43 tv Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -249,21 +249,7 @@
                /*
                 * Load the current PTE with this page.
                 */
-               if (sgmap->aps_flags & SGMAP_KA49) {
-                       unsigned long tmp = pa >> VAX_PGSHIFT;
-                       int cnt;
-
-                       for (cnt = 0; tmp != 0; tmp >>= 1) {
-                               cnt += (tmp & 1);
-                       }
-                       *pte = pa | PG_V | ((cnt & 1) ? 0 : 0x10000000);
-#if 0
-                       printf("[%d]: va=0x%08lx map=0x%08lx\n", 
-                           pteidx + map->_dm_ptecnt, va + dmaoffset, *pte);
-#endif
-               } else {
-                       *pte = (pa >> VAX_PGSHIFT) | PG_V;
-               }
+               *pte = (pa >> VAX_PGSHIFT) | PG_V;
        }
        /* The VS4000 SCSI prefetcher doesn't like to end on a page boundary
         * so add an extra page to quiet it down.



Home | Main Index | Thread Index | Old Index