Updated MxTasking example

This commit is contained in:
Michael Mueller
2022-07-11 12:00:09 +02:00
parent 0c1f727871
commit e5b58e1eb6
6 changed files with 82 additions and 31 deletions

View File

@@ -1,6 +1,7 @@
build "core init timer app/hello_mxtask"
create_boot_directory
install_config {
<config>
<parent-provides>
@@ -12,9 +13,7 @@ install_config {
<service name="IRQ"/>
<service name="IO_MEM"/>
<service name="IO_PORT"/>
<service name="CAP"/>
<service name="RM"/>
<service name="SIGNAL"/>
</parent-provides>
<default-route>
<any-service><parent/><any-child/></any-service>
@@ -28,16 +27,19 @@ install_config {
</route>
</start>
<start name="hello_mxtask">
<resource name="RAM" quantum="10M"/>
<resource name="RAM" quantum="8000M"/>
<route>
<service name="Timer"> <child name="timer"/> </service>
<any-service><parent/><any-child/></any-service>
<any-service> <parent/> <any-child/> </any-service>
</route>
<config>
<libc stdout="/dev/log" stderr="/dev/log"/>
</config>
</start>
</config>
}
set boot_modules {
core init timer vfs.lib.so ld.lib.so libm.lib.so libc.lib.so stdcxx.lib.so mxtasking.lib.so hello_mxtask
core init timer vfs.lib.so ld.lib.so libm.lib.so libc.lib.so stdcxx.lib.so hello_mxtask
}
build_boot_image $boot_modules
append qemu_args "-nographic -m 64"