From 01d8e5adac204b0f22bfcf990eff272b66f45444 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 31 Oct 2006 23:25:58 +0000 Subject: Do not map obio mappings twice. --- sys/arch/landisk/dev/obio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/landisk/dev/obio.c b/sys/arch/landisk/dev/obio.c index a4b80cccf5c..c94ef48bf26 100644 --- a/sys/arch/landisk/dev/obio.c +++ b/sys/arch/landisk/dev/obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obio.c,v 1.3 2006/10/21 14:43:51 kettenis Exp $ */ +/* $OpenBSD: obio.c,v 1.4 2006/10/31 23:25:57 miod Exp $ */ /* $NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /*- @@ -248,7 +248,7 @@ obio_iomem_add_mapping(bus_addr_t bpa, bus_size_t size, int type, panic("obio_iomem_add_mapping: overflow"); #endif - va = uvm_km_alloc(kernel_map, endpa - pa); + va = uvm_km_valloc(kernel_map, endpa - pa); if (va == 0){ printf("obio_iomem_add_mapping: nomem\n"); return (ENOMEM); -- cgit v1.2.3