diff --git a/sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c b/sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c index 23c802dde201..9a5d2e6425f9 100644 --- a/sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c +++ b/sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_bwx_bus_io_chipdep.c,v 1.2 1998/06/06 22:28:16 thorpej Exp $ */ +/* $NetBSD: pci_bwx_bus_io_chipdep.c,v 1.3 1998/06/07 00:29:29 thorpej Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -407,6 +407,7 @@ __C(CHIP,_io_alloc)(v, rstart, rend, size, align, boundary, flags, printf("io: allocated 0x%lx to 0x%lx\n", ioaddr, ioaddr + size - 1); #endif + *addrp = ioaddr; *bshp = ALPHA_PHYS_TO_K0SEG(CHIP_IO_SYS_START(v)) + ioaddr; return (0); diff --git a/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c b/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c index ddb8a9989520..61662db169cb 100644 --- a/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c +++ b/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c @@ -1,7 +1,7 @@ -/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.2 1998/06/06 22:28:16 thorpej Exp $ */ +/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.3 1998/06/07 00:29:29 thorpej Exp $ */ /*- - * Copyright (c) 1997 The NetBSD Foundation, Inc. + * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -406,6 +406,7 @@ __C(CHIP,_mem_alloc)(v, rstart, rend, size, align, boundary, flags, printf("mem: allocated 0x%lx to 0x%lx\n", memaddr, memaddr + size - 1); #endif + *addrp = memaddr; *bshp = ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v)) + memaddr; return (0); diff --git a/sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c b/sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c index bc1dfc2676be..ac0369672fba 100644 --- a/sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c +++ b/sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_swiz_bus_io_chipdep.c,v 1.24 1998/06/06 22:44:46 thorpej Exp $ */ +/* $NetBSD: pci_swiz_bus_io_chipdep.c,v 1.25 1998/06/07 00:29:29 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -501,6 +501,7 @@ __C(CHIP,_io_alloc)(v, rstart, rend, size, align, boundary, flags, printf("io: allocated 0x%lx to 0x%lx\n", ioaddr, ioaddr + size - 1); #endif + *addrp = ioaddr; __C(CHIP,_io_mapit)(v, ioaddr, bshp); return (0);