Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/uba Calculation of unibus map register size was...



details:   https://anonhg.NetBSD.org/src/rev/1d843f87d245
branches:  trunk
changeset: 513270:1d843f87d245
user:      ragge <ragge%NetBSD.org@localhost>
date:      Fri Jul 27 12:57:20 2001 +0000

description:
Calculation of unibus map register size was wrong.

diffstat:

 sys/arch/vax/uba/uba_dma.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c4e03bd6917f -r 1d843f87d245 sys/arch/vax/uba/uba_dma.c
--- a/sys/arch/vax/uba/uba_dma.c        Fri Jul 27 11:37:58 2001 +0000
+++ b/sys/arch/vax/uba/uba_dma.c        Fri Jul 27 12:57:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uba_dma.c,v 1.5 2000/06/29 07:14:22 mrg Exp $ */
+/* $NetBSD: uba_dma.c,v 1.6 2001/07/27 12:57:20 ragge Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -114,7 +114,7 @@
                pte = sc->uv_uba->uba_map;
        } else {
                pte = (struct pte *)vax_map_physmem(sc->uv_addr,
-                   sc->uv_size/(VAX_NBPG/sizeof(struct pte)));
+                   vax_btoc(vax_btoc(sc->uv_size) * sizeof(struct pte)));
                if (pte == 0)
                        panic("uba_dma_init");
        }



Home | Main Index | Thread Index | Old Index