Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/atari/vme Pull up revision 1.4 (requested by l...



details:   https://anonhg.NetBSD.org/src/rev/5bfff8abe0f6
branches:  netbsd-1-4
changeset: 469844:5bfff8abe0f6
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 04 19:46:40 1999 +0000

description:
Pull up revision 1.4 (requested by leo):
  Fix arguments of bus_space_unmap().

diffstat:

 sys/arch/atari/vme/et4000.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 98eb1e1f1727 -r 5bfff8abe0f6 sys/arch/atari/vme/et4000.c
--- a/sys/arch/atari/vme/et4000.c       Sat Dec 04 19:43:32 1999 +0000
+++ b/sys/arch/atari/vme/et4000.c       Sat Dec 04 19:46:40 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: et4000.c,v 1.3 1999/03/31 10:44:15 leo Exp $   */
+/*     $NetBSD: et4000.c,v 1.3.2.1 1999/12/04 19:46:40 he Exp $        */
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -194,14 +194,13 @@
                if (bus_space_map(memt, vat.va_maddr, vat.va_msize,
                                  BUS_SPACE_MAP_LINEAR|BUS_SPACE_MAP_CACHEABLE,
                                  &memh)) {
-                       bus_space_unmap(iot, (caddr_t)vat.va_iobase,
-                                       vat.va_iosize);
+                       bus_space_unmap(iot, ioh, vat.va_iosize);
                        printf("et probe: cannot map memory area\n");
                        return(0);
                }
                found = et_detect(&iot, &memt, &ioh, &memh, vat.va_msize);
-               bus_space_unmap(iot, (caddr_t)vat.va_iobase, vat.va_iosize);
-               bus_space_unmap(memt, (caddr_t)vat.va_maddr, vat.va_msize);
+               bus_space_unmap(iot, ioh, vat.va_iosize);
+               bus_space_unmap(memt, memh, vat.va_msize);
                if (found) {
                        *va = vat;
                        return(1);



Home | Main Index | Thread Index | Old Index