summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-10-31 23:25:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-10-31 23:25:58 +0000
commit01d8e5adac204b0f22bfcf990eff272b66f45444 (patch)
tree235542cc9e03cecc5dea4f9bb04cb4cfa922dc15 /sys/arch
parent5c8a77dcc77991f5adf06b254332d22babc9afc6 (diff)
Do not map obio mappings twice.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/landisk/dev/obio.c4
1 files changed, 2 insertions, 2 deletions
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);