lh-l4v/spec/haskell
Miki Tanaka 00f1393c5b arm-hyp execspec: add caseconvs, fixes in haskell + VCPU_H 2017-06-19 14:32:19 +10:00
..
doc haskell: add .PHONY makefile entries 2016-05-24 16:31:03 +10:00
include license-tool: missing license headers + .licenseignore [VER-551] 2016-07-14 16:34:31 +10:00
src arm-hyp execspec: add caseconvs, fixes in haskell + VCPU_H 2017-06-19 14:32:19 +10:00
.gitignore haskell: use stack to obtain suitable GHC and cabal 2017-02-01 17:31:21 +11:00
Makefile haskell: clean up Makefile, separate build dir per target 2017-06-17 16:26:11 +10:00
README.md haskell: update documentation for building the Haskell kernel 2017-02-03 16:23:56 +11:00
SEL4.cabal arm-hyp haskell: basic stubs to support recent haskell changes 2017-06-17 16:26:11 +10:00
Setup.hs arm-hyp haskell: add arm-hyp-nossmu target, make sure it compiles 2017-06-17 16:26:11 +10:00
check-newlines.sh haskell: add license tag to util script 2016-05-24 16:31:03 +10:00
configure haskell: move Haskell kernel into spec/ 2016-05-24 14:18:13 +10:00
mkhsboot.pl haskell: allow underscores in module names in mkhsboot 2017-06-17 16:26:11 +10:00
stack-path haskell: use stack to obtain suitable GHC and cabal 2017-02-01 17:31:21 +11:00
stack.yaml haskell: use stack to obtain suitable GHC and cabal 2017-02-01 17:31:21 +11:00

README.md

The seL4 Haskell Model

The sources in this directory can be used to build a Haskell Cabal package containing an executable model of the seL4 kernel. The model cannot run stand-alone; it must be integrated into a simulator that can run user-level binaries and generate events that the kernel model can process.

To build it:

  • install the Haskell build tool stack.
  • run make

The Makefile will use stack to fetch appropriate versions of ghc and cabal-install.

After that, you can compile Haskell programs using the simulator by adding -package SEL4 to the ghc command line. Note that the qemu target requires some callback functions to be accessible via the FFI, so it is not possible to load a model compiled for those targets in GHCi.

Currently, the simulator interface is out of date, so this model is currently only useful as documentation and as intermediate artefact in the seL4 correctness proof. The model itself is kept up to date with the C code, only the simulator interface is outdated.