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
This commit is contained in:
parent
eab4c887ec
commit
f61c0c6309
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue