summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-03-03 15:12:07 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-03-03 15:12:07 +0000
commitb6075895bc4e1fb1ef10c261a7460d7aa095d3b6 (patch)
tree120331815315b8e9e43b2ceb996b5d4640845390 /sys
parentc8d63b05598af3031df5c409fbdddbf0a0af5c13 (diff)
When allocating virtual space for bus_space_map, don't use
uvm_km_alloc() (which allocates some virtual space and then $size_of_mapping pages which it then enters) *then* pmap_kenter the bus_space address that we wish to map, it's just a little bit stupid and a waste of memory. replace with uvm_km_valloc and ponies for everyone. ok drahn@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/s3c2xx0/s3c2xx0_space.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/s3c2xx0/s3c2xx0_space.c b/sys/arch/arm/s3c2xx0/s3c2xx0_space.c
index c7b741eae2d..6381d073995 100644
--- a/sys/arch/arm/s3c2xx0/s3c2xx0_space.c
+++ b/sys/arch/arm/s3c2xx0/s3c2xx0_space.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3c2xx0_space.c,v 1.1 2008/11/26 14:39:14 drahn Exp $ */
+/* $OpenBSD: s3c2xx0_space.c,v 1.2 2010/03/03 15:12:06 oga Exp $ */
/* $NetBSD: s3c2xx0_space.c,v 1.7 2005/11/24 13:08:32 yamt Exp $ */
/*
@@ -189,7 +189,7 @@ s3c2xx0_bs_map(void *t, bus_addr_t bpa, bus_size_t size,
/* XXX use extent manager to check duplicate mapping */
- va = uvm_km_alloc(kernel_map, endpa - startpa);
+ va = uvm_km_valloc(kernel_map, endpa - startpa);
if (!va)
return (ENOMEM);