Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc deal with bus_addr_t now being a 64-bit...
details: https://anonhg.NetBSD.org/src/rev/c532c690bafa
branches: trunk
changeset: 515715:c532c690bafa
user: chs <chs%NetBSD.org@localhost>
date: Wed Oct 03 09:37:23 2001 +0000
description:
deal with bus_addr_t now being a 64-bit quantity. fixes PR 14107.
diffstat:
sys/arch/sparc/sparc/machdep.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 81a6cee2acb5 -r c532c690bafa sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c Wed Oct 03 07:04:32 2001 +0000
+++ b/sys/arch/sparc/sparc/machdep.c Wed Oct 03 09:37:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.185 2001/09/24 23:49:32 eeh Exp $ */
+/* $NetBSD: machdep.c,v 1.186 2001/10/03 09:37:23 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1448,7 +1448,7 @@
bus_size_t sgsize;
vaddr_t va = (vaddr_t)buf;
int pagesz = PAGE_SIZE;
- bus_addr_t dva;
+ vaddr_t dva;
pmap_t pmap;
/*
@@ -1495,7 +1495,7 @@
if (extent_alloc(dvmamap24, sgsize, pagesz, map->_dm_boundary,
(flags & BUS_DMA_NOWAIT) == 0 ? EX_WAITOK : EX_NOWAIT,
- (u_long *)&dva) != 0) {
+ &dva) != 0) {
return (ENOMEM);
}
@@ -1561,7 +1561,7 @@
{
struct vm_page *m;
paddr_t pa;
- bus_addr_t dva;
+ vaddr_t dva;
bus_size_t sgsize;
struct pglist *mlist;
int pagesz = PAGE_SIZE;
@@ -1576,7 +1576,7 @@
map->_dm_boundary,
(flags & BUS_DMA_NOWAIT) == 0
? EX_WAITOK : EX_NOWAIT,
- (u_long *)&dva);
+ &dva);
if (error)
return (error);
} else {
@@ -1629,7 +1629,7 @@
bus_dma_segment_t *segs = map->dm_segs;
int nsegs = map->dm_nsegs;
int flags = map->_dm_flags;
- bus_addr_t dva;
+ vaddr_t dva;
bus_size_t len;
int i, s, error;
Home |
Main Index |
Thread Index |
Old Index