mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-12 07:52:44 +00:00
511acad507
This patch integrates three region maps into each PD session to reduce the session overhead and to simplify the PD creation procedure. Please refer to the issue cited below for an elaborative discussion. Note the API change: With this patch, the semantics of core's RM service have changed. Now, the service is merely a tool for creating and destroying managed dataspaces, which are rarely needed. Regular components no longer need a RM session. For this reason, the corresponding argument for the 'Process' and 'Child' constructors has been removed. The former interface of the 'Rm_session' is not named 'Region_map'. As a minor refinement, the 'Fault_type' enum values are now part of the 'Region_map::State' struct. Issue #1938
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
build "core init test/thread"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-thread">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core init test-thread"
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
run_genode_until {child "test-thread" exited with exit value .*\n} 60
|
|
|
|
# determine error code of child exit
|
|
set exit_code [regexp -inline {child "test-thread" exited with exit value .*\n} $output]
|
|
set exit_code [regexp -inline {[-+]?[0-9]+} $exit_code]
|
|
|
|
# good case
|
|
if {$exit_code eq 0} {
|
|
return
|
|
}
|
|
# no pause/resume support for Fiasco and Pistachio - they may return a error
|
|
if {[expr [have_spec fiasco] || [have_spec pistachio]] && $exit_code eq -11} { return }
|
|
# no puase/resume support for Linux - it may return a error
|
|
if {[have_spec linux] && $exit_code eq -10} { return }
|
|
|
|
exit -1
|