genode/ports-foc/src/lib/l4lx
Christian Prochaska 570156b38c l4lx: allocate memory in chunks
When L4Linux tries to allocate a dataspace of the size of its physical
memory, this allocation can fail, because the 'l4re_ma_alloc()' function
in the 'l4lx' library always tries to allocate a contiguous dataspace of
the given size and there might be no contiguous free area left.

With this patch, memory gets allocated in chunks: if the size to be
allocated exceeds the configured chunk size, a managed dataspace gets
created and filled with multiple memory chunks of at most the chunk size.

The chunk size is 16M by default and can be configured in an l4linux
config node:

<config args="...">
	<ram chunk_size="16M"/>
</config>

Fixes #695.
2013-03-20 14:22:04 +01:00
..
include base: add remove_client to rm_session 2013-02-11 12:01:25 +01:00
dataspace.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
env.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
genode_block.cc Fix l4linux block driver for large partitions 2013-03-08 12:09:53 +01:00
genode_framebuffer.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
genode_input.cc New Input::Event::FOCUS, rename keycode to code 2013-01-15 10:18:11 +01:00
genode_net.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
genode_terminal.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_io.cc L4Linux stability improvements 2013-03-18 13:06:06 +01:00
l4_log.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_re_c_dataspace.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_re_c_debug.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_re_c_mem_alloc.cc l4lx: allocate memory in chunks 2013-03-20 14:22:04 +01:00
l4_re_c_namespace.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_re_c_rm.cc L4Linux stability improvements 2013-03-18 13:06:06 +01:00
l4_re_c_util_cap.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_re_env.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_util_atomic.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_util_cpu.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_util_kip.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4_util_util.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4lx_irq.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4lx_memory.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4lx_task.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
l4lx_thread.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
rm.cc L4Linux stability improvements 2013-03-18 13:06:06 +01:00
startup.cc Update copyright headers to 2013 2013-01-10 21:44:47 +01:00