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 *NEVER* cast a reference parameter to a...
details: https://anonhg.NetBSD.org/src/rev/1808c93bd73a
branches: trunk
changeset: 515477:1808c93bd73a
user: eeh <eeh%NetBSD.org@localhost>
date: Wed Sep 26 15:05:49 2001 +0000
description:
*NEVER* cast a reference parameter to a different type.
diffstat:
sys/arch/sparc/sparc/iommu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 467685af8375 -r 1808c93bd73a sys/arch/sparc/sparc/iommu.c
--- a/sys/arch/sparc/sparc/iommu.c Wed Sep 26 14:07:51 2001 +0000
+++ b/sys/arch/sparc/sparc/iommu.c Wed Sep 26 15:05:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iommu.c,v 1.55 2001/09/10 21:19:24 chris Exp $ */
+/* $NetBSD: iommu.c,v 1.56 2001/09/26 15:05:49 eeh Exp $ */
/*
* Copyright (c) 1996
@@ -559,7 +559,7 @@
bus_size_t *sgsizep;
{
bus_size_t sgsize;
- u_long align, voff;
+ u_long align, voff, dvaddr;
int s, error;
int pagesz = PAGE_SIZE;
@@ -583,9 +583,9 @@
map->_dm_boundary,
(flags & BUS_DMA_NOWAIT) == 0
? EX_WAITOK : EX_NOWAIT,
- (u_long *)dvap);
+ &dvaddr);
splx(s);
-
+ *dvap = (bus_addr_t)dvaddr;
*sgsizep = sgsize;
return (error);
}
Home |
Main Index |
Thread Index |
Old Index