From f61c0c63092cfdaec25d6182301f8093a929b464 Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Fri, 23 Mar 2018 14:18:09 +0100 Subject: [PATCH] lx_kit: Do not align DMA memory kmalloc Aligning memory to page size will require at lead 8KB per allocation (even for 8 bytes). This should severely reduce memory requirements of all dde_linux projects. related to #2731 --- repos/dde_linux/src/include/lx_emul/impl/slab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_linux/src/include/lx_emul/impl/slab.h b/repos/dde_linux/src/include/lx_emul/impl/slab.h index fed554a8cb..9e38dde2fa 100644 --- a/repos/dde_linux/src/include/lx_emul/impl/slab.h +++ b/repos/dde_linux/src/include/lx_emul/impl/slab.h @@ -27,7 +27,7 @@ void *kmalloc(size_t size, gfp_t flags) void *addr = nullptr; addr = (flags & GFP_LX_DMA) - ? Lx::Malloc::dma().alloc(size, 12) + ? Lx::Malloc::dma().alloc(size) : Lx::Malloc::mem().alloc(size); if ((Genode::addr_t)addr & 0x3)