genode/libports/run/moon.run
Alexander Boettcher 49786a7ca3 CPU service required
Required to start thread on Genode/NOVA. Without the service it fails with:

int main(): --- init created, waiting for exit condition ---
[init] timer: no route to service "CPU"
[init -> test-moon] Starting ldso ...
[init -> timer] C++ runtime: Genode::Parent::Service_denied
[init -> timer] void* abort(): abort called
2012-08-10 16:52:28 +02:00

42 lines
816 B
Plaintext

#
# Lua C++ library test
#
build "core init drivers/timer test/moon"
create_boot_directory
install_config {
<config>
<parent-provides>
<service name="ROM"/>
<service name="RM"/>
<service name="CAP"/>
<service name="LOG"/>
<service name="IO_PORT"/>
<service name="IRQ"/>
<service name="CPU"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides> <service name="Timer"/> </provides>
</start>
<start name="test-moon">
<resource name="RAM" quantum="1100K"/>
</start>
</config>
}
build_boot_image {
core init timer test-moon
ld.lib.so libc.lib.so libc_log.lib.so libm.lib.so
}
append qemu_args " -nographic -m 64 "
run_genode_until {.*test-moon.*Finished\..*} 30