Source-Changes-HG archive

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

[src/netbsd-1-5]: src/lib/libarch/alpha Pull up rev. 1.2:



details:   https://anonhg.NetBSD.org/src/rev/895d8978208e
branches:  netbsd-1-5
changeset: 488402:895d8978208e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 03 22:37:42 2000 +0000

description:
Pull up rev. 1.2:
Pass the abst to alpha_pci_mem_unmap() so that the real size of the
mapped area can be unmapped.

diffstat:

 lib/libarch/alpha/alpha_pci_mem.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r be6f9bd2f9c6 -r 895d8978208e lib/libarch/alpha/alpha_pci_mem.c
--- a/lib/libarch/alpha/alpha_pci_mem.c Mon Jul 03 22:36:31 2000 +0000
+++ b/lib/libarch/alpha/alpha_pci_mem.c Mon Jul 03 22:37:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: alpha_pci_mem.c,v 1.1 2000/02/26 18:59:36 thorpej Exp $        */
+/*     $NetBSD: alpha_pci_mem.c,v 1.1.4.1 2000/07/03 22:37:42 thorpej Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -124,10 +124,11 @@
 }
 
 void
-alpha_pci_mem_unmap(addr, size)
+alpha_pci_mem_unmap(abst, addr, size)
+       struct alpha_bus_space_translation *abst;
        void *addr;
        bus_size_t size;
 {
 
-       (void) munmap(addr, size);
+       (void) munmap(addr, size << abst->abst_addr_shift);
 }



Home | Main Index | Thread Index | Old Index