Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax Fix of bug causing allocations of physical page...



details:   https://anonhg.NetBSD.org/src/rev/4824df587ddd
branches:  trunk
changeset: 473807:4824df587ddd
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sun Jun 20 00:59:54 1999 +0000

description:
Fix of bug causing allocations of physical pages to get wrong address.

diffstat:

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

diffs (47 lines):

diff -r b4f8d1ae7101 -r 4824df587ddd sys/arch/vax/uba/uba_dma.c
--- a/sys/arch/vax/uba/uba_dma.c        Sun Jun 20 00:58:23 1999 +0000
+++ b/sys/arch/vax/uba/uba_dma.c        Sun Jun 20 00:59:54 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uba_dma.c,v 1.1 1999/06/06 19:00:53 ragge Exp $ */
+/* $NetBSD: uba_dma.c,v 1.2 1999/06/20 00:59:55 ragge Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -145,7 +145,7 @@
        map = *dmamp;
 
        if (flags & BUS_DMA_ALLOCNOW) {
-               error = vax_sgmap_alloc(map, round_page(size),
+               error = vax_sgmap_alloc(map, vax_round_page(size),
                    t->_sgmap, flags);
                if (error)
                        uba_bus_dmamap_destroy_sgmap(t, map);
diff -r b4f8d1ae7101 -r 4824df587ddd sys/arch/vax/vax/sgmap.c
--- a/sys/arch/vax/vax/sgmap.c  Sun Jun 20 00:58:23 1999 +0000
+++ b/sys/arch/vax/vax/sgmap.c  Sun Jun 20 00:59:54 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sgmap.c,v 1.1 1999/06/06 18:58:50 ragge Exp $ */
+/* $NetBSD: sgmap.c,v 1.2 1999/06/20 00:59:54 ragge Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -128,7 +128,7 @@
                panic("vax_sgmap_alloc: already have sgva space");
 #endif
 
-       map->_dm_sgvalen = round_page(len);
+       map->_dm_sgvalen = vax_round_page(len);
 
 #if 0
        printf("len %x -> %x, _dm_sgvalen %x _dm_boundary %x boundary %x -> ",
@@ -210,8 +210,8 @@
         * allocations.
         *
         */
-       endva = round_page(va + buflen);
-       va = trunc_page(va);
+       endva = vax_round_page(va + buflen);
+       va = vax_trunc_page(va);
        if ((map->_dm_flags & DMAMAP_HAS_SGMAP) == 0) {
                error = vax_sgmap_alloc(map, (endva - va), sgmap, flags);
                if (error)



Home | Main Index | Thread Index | Old Index