Make km_alloc(9) use the direct map for all "phys contig" mappings requested
authorkettenis <kettenis@openbsd.org>
Fri, 23 Jan 2015 17:09:23 +0000 (17:09 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 23 Jan 2015 17:09:23 +0000 (17:09 +0000)
commit6d52d019d4e31696ee082ee4cd82b1b7fe045c35
treeef03e2c52e7eca46084f01588ca34fa77ef8a949
parentf435e6cbb60fa45c96195909e9bd33b091777e42
Make km_alloc(9) use the direct map for all "phys contig" mappings requested
by the caller on architectures that implement them.  Make sure that we
physically align memory such that we meet any demands on virtual alignment
in this case.  This should reduce the overhead of mapping large pool pages
for pools that request dma'able memory.

ok deraadt@, dlg@
sys/uvm/uvm_km.c