mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 17:01:07 +00:00
02d5efcf3f
The init component used to create the CPU/RAM/PD/ROM sessions (the child environment) for its children by issuing session requests to its parent, which is typically core. This policy was hard-wired. This patch enables the routing of the environment sessions of the children of init according to the configured routing policy. Because there is no hard-wired policy regarding the environment sessions anymore, routes to respective services must be explicitly declared in the init configuration. For this reason, the patch adjusts several run scripts in this respect. This patch removes the outdated '<if-args>' special handling of session labels. The '<if-args>' feature will eventually be removed completely (ref #2250) Issue #2197 Issue #2215 Issue #2233 Issue #2250
41 lines
997 B
Plaintext
41 lines
997 B
Plaintext
build "core init test/log"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="CPU"/>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-log">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core ld.lib.so init test-log"
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
run_genode_until "Test done.*\n" 10
|
|
|
|
grep_output {\[init -\> test-log\]}
|
|
|
|
compare_output_to {
|
|
[init -> test-log] hex range: [0e00,1680)
|
|
[init -> test-log] empty hex range: [0abc0000,0abc0000) (empty!)
|
|
[init -> test-log] hex range to limit: [f8,ff]
|
|
[init -> test-log] invalid hex range: [f8,08) (overflow!)
|
|
[init -> test-log] negative hex char: 0xfe
|
|
[init -> test-log] positive hex char: 0x02
|
|
[init -> test-log] multiarg string: "parent -> child.7"
|
|
[init -> test-log] Test done.
|
|
}
|