2020-01-17 19:27:04 +01:00
|
|
|
-- SPDX-License-Identifier: CC0-1.0
|
|
|
|
let Genode = env:DHALL_GENODE
|
|
|
|
|
|
|
|
let Args =
|
2020-01-23 18:15:32 +01:00
|
|
|
{ config : Genode.Init.Type
|
|
|
|
, rom : Genode.Prelude.Map.Type Text Genode.Boot.Rom
|
|
|
|
}
|
2020-01-17 19:27:04 +01:00
|
|
|
: Type
|
|
|
|
|
|
|
|
in λ(args : Args)
|
|
|
|
→ { config =
|
|
|
|
Genode.Init::{
|
|
|
|
, verbose = True
|
|
|
|
, defaultRoutes =
|
|
|
|
Genode.Init.default.defaultRoutes
|
|
|
|
# [ Genode.ServiceRoute.child "Timer" "timer" ]
|
|
|
|
, children =
|
|
|
|
[ { mapKey = "timer"
|
|
|
|
, mapValue =
|
|
|
|
Genode.Init.Start::{
|
|
|
|
, binary = "linux_timer_drv"
|
|
|
|
, resources = { caps = 96, ram = Genode.units.MiB 1 }
|
|
|
|
, provides = [ "Timer" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, { mapKey = "init", mapValue = Genode.Init.toStart args.config }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
, rom =
|
2020-01-25 00:17:33 +01:00
|
|
|
let manifest = env:MANIFEST
|
2020-02-18 20:14:29 +01:00
|
|
|
|
2020-01-23 18:15:32 +01:00
|
|
|
in Genode.Boot.toRomPaths
|
2020-02-11 16:01:39 +01:00
|
|
|
[ manifest.base-linux.bin.ld
|
2020-01-25 00:17:33 +01:00
|
|
|
, manifest.base-linux.bin.linux_timer_drv
|
|
|
|
, manifest.os.bin.init
|
|
|
|
, manifest.base-linux.bin.core-linux
|
2020-01-23 18:15:32 +01:00
|
|
|
]
|
|
|
|
# args.rom
|
|
|
|
: Genode.Prelude.Map.Type Text Genode.Boot.Rom
|
2020-01-17 19:27:04 +01:00
|
|
|
}
|