mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
hoitaja: Example scenario for long-term scheduling of cells.
This commit is contained in:
114
repos/mml/run/hoitaja_example.run
Normal file
114
repos/mml/run/hoitaja_example.run
Normal file
@@ -0,0 +1,114 @@
|
||||
set build_components {
|
||||
core init hoitaja timer app/persistent_cell app/volatile_cell
|
||||
}
|
||||
|
||||
source ${genode_dir}/repos/base/run/platform_drv.inc
|
||||
append_platform_drv_build_components
|
||||
|
||||
build $build_components
|
||||
|
||||
create_boot_directory
|
||||
|
||||
set config {
|
||||
<config>
|
||||
<!--<affinity-space width="64" height="1"/>-->
|
||||
<parent-provides>
|
||||
<service name="LOG"/>
|
||||
<service name="PD"/>
|
||||
<service name="CPU"/>
|
||||
<service name="ROM"/>
|
||||
<service name="RAM"/>
|
||||
<service name="IRQ"/>
|
||||
<service name="IO_MEM"/>
|
||||
<service name="IO_PORT"/>
|
||||
<service name="CAP"/>
|
||||
<service name="RM"/>
|
||||
<service name="SIGNAL"/>
|
||||
<service name="TOPO"/>
|
||||
</parent-provides>
|
||||
<default-route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</default-route>
|
||||
<default caps="200"/>
|
||||
<start name="timer">
|
||||
<resource name="RAM" quantum="16M"/>
|
||||
<provides><service name="Timer"/></provides>
|
||||
<route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</route>
|
||||
</start>
|
||||
<start name="hoitaja" caps="62000">
|
||||
<resource name="RAM" quantum="250G"/>
|
||||
<!--<affinity xpos="0" ypos="0" width="64" height="1"/>-->
|
||||
<config prio_levels="32">
|
||||
<affinity-space width="32" height="1"/>
|
||||
<parent-provides>
|
||||
<service name="LOG"/>
|
||||
<service name="PD"/>
|
||||
<service name="CPU"/>
|
||||
<service name="ROM"/>
|
||||
<service name="RAM"/>
|
||||
<service name="IRQ"/>
|
||||
<service name="IO_MEM"/>
|
||||
<service name="IO_PORT"/>
|
||||
<service name="CAP"/>
|
||||
<service name="RM"/>
|
||||
<service name="SIGNAL"/>
|
||||
<service name="TOPO"/>
|
||||
<service name="Timer"/>
|
||||
</parent-provides>
|
||||
<default-route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</default-route>
|
||||
<default caps="200"/>
|
||||
<start name="persistent_cell">
|
||||
<affinity xpos="1" ypos="0" width="1" height="1"/>
|
||||
<binary name="persistent_cell"/>
|
||||
<resource name="RAM" quantum="64M"/>
|
||||
<config child="false">
|
||||
</config>
|
||||
<route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</route>
|
||||
</start>
|
||||
<start name="persitent_2" priority="-2">
|
||||
<affinity xpos="2" ypos="0" width="1" height="1"/>
|
||||
<binary name="persistent_cell"/>
|
||||
<resource name="RAM" quantum="64M"/>
|
||||
<config child="false">
|
||||
</config>
|
||||
<route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</route>
|
||||
</start>
|
||||
<start name="volatile" priority="-2">
|
||||
<affinity xpos="2" ypos="0" width="1" height="1"/>
|
||||
<binary name="volatile_cell"/>
|
||||
<resource name="RAM" quantum="64M"/>
|
||||
<config child="false">
|
||||
</config>
|
||||
<route>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</route>
|
||||
</start>
|
||||
</config>
|
||||
<route>
|
||||
<service name="Timer"> <child name="timer"/> </service>
|
||||
<any-service><parent/><any-child/></any-service>
|
||||
</route>
|
||||
</start>
|
||||
</config>
|
||||
}
|
||||
|
||||
install_config $config
|
||||
|
||||
set boot_modules {
|
||||
core init hoitaja timer vfs.lib.so ld.lib.so persistent_cell volatile_cell
|
||||
}
|
||||
|
||||
append_platform_drv_boot_modules
|
||||
|
||||
build_boot_image $boot_modules
|
||||
append qemu_args "-nographic "
|
||||
|
||||
run_genode_until forever
|
||||
Reference in New Issue
Block a user