Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/dev Fixed a bug where we were trying to map th...
details: https://anonhg.NetBSD.org/src/rev/706186afa5de
branches: trunk
changeset: 508371:706186afa5de
user: fredette <fredette%NetBSD.org@localhost>
date: Tue Apr 10 12:42:51 2001 +0000
description:
Fixed a bug where we were trying to map the board RAM
using the physical address of the board registers.
diffstat:
sys/arch/sun2/dev/if_ie_mbmem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1d222da8fb72 -r 706186afa5de sys/arch/sun2/dev/if_ie_mbmem.c
--- a/sys/arch/sun2/dev/if_ie_mbmem.c Tue Apr 10 12:40:53 2001 +0000
+++ b/sys/arch/sun2/dev/if_ie_mbmem.c Tue Apr 10 12:42:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie_mbmem.c,v 1.1 2001/04/06 15:14:39 fredette Exp $ */
+/* $NetBSD: if_ie_mbmem.c,v 1.2 2001/04/10 12:42:51 fredette Exp $ */
/*-
* Copyright (c) 1995 Charles D. Cranor
@@ -507,7 +507,7 @@
/* 4 more */
rampaddr = rampaddr | ((read_iev(vsc, status) & IEMBMEM_HADDR) << 16);
sc->bt = ca->ca_bustag;
- if (bus_space_map(ca->ca_bustag, ca->ca_paddr, memsize, 0, &sc->bh))
+ if (bus_space_map(ca->ca_bustag, rampaddr, memsize, 0, &sc->bh))
panic("ie_mbmem_attach: can't map mem");
write_iev(vsc, pectrl, read_iev(vsc, pectrl) | IEMBMEM_PARACK);
Home |
Main Index |
Thread Index |
Old Index