mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 00:41:08 +00:00
68c1b8675c
A ring buffer that uses a single dataspace mapped twice in consecutive regions. This allows any operation that is less or equal to the size of the buffer to be read or written in a single pass. The capacity of Magic_ring_buffer is defined at runtime. Fix #2725
30 lines
594 B
Plaintext
30 lines
594 B
Plaintext
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="ROM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-magic_ring_buffer" caps="64">
|
|
<resource name="RAM" quantum="2M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build "core init test/magic_ring_buffer"
|
|
|
|
build_boot_image {
|
|
core ld.lib.so init test-magic_ring_buffer
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until "child .* exited with exit value 0.*\n" 10
|