mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 22:23:16 +00:00
bcf6714eff
The original loader service was primarily motivated by the browser-plugin scenario presented on our live CD. The new version implements a more general session interface, which widens the application scope of the service and, at the same time, reduces its implementation complexity. The complexity reduction is achieved by removing the original limitation of supplying the new sub system as a single binary blob only. The server used to implement heuristics and functionality for dealing with different kinds of blobs such as ELF images or TAR archives. This has been replaced by a session-local ROM service, which can be equipped with an arbitrary number of ROM modules supplied by the loader client prior starting the new sub system. Even though the TAR support has been removed, a separate instance of the 'tar_rom' service can be used within the subsystem to provide the formerly built-in functionality.
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
build "core init drivers/timer server/loader test/dynamic_config"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="CPU"/>
|
|
<service name="RM"/>
|
|
<service name="CAP"/>
|
|
<service name="PD"/>
|
|
<service name="IRQ"/>
|
|
<service name="IO_PORT"/>
|
|
<service name="SIGNAL"/>
|
|
<service name="LOG"/>
|
|
</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="loader">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides><service name="Loader"/></provides>
|
|
</start>
|
|
<start name="test-dynamic_config_loader">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core init timer loader test-dynamic_config test-dynamic_config_loader"
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
run_genode_until {obtained counter value 11 from config.*} 100
|
|
|
|
puts "Test succeeded"
|