lh-l4v/spec/haskell
Joel Beeren ffc0640869 VER-853: put arch_check_irq into the Arch locale, and update x64 to match C 2017-12-13 12:13:36 +11:00
..
doc manually adjust non-obvious cases of tab to space replacement 2017-10-20 14:22:36 +11:00
include license-tool: missing license headers + .licenseignore [VER-551] 2016-07-14 16:34:31 +10:00
src VER-853: put arch_check_irq into the Arch locale, and update x64 to match C 2017-12-13 12:13:36 +11:00
.gitignore Removes all trailing whitespaces 2017-07-12 15:13:51 +10:00
Makefile x64: merge master 2017-07-21 11:27:12 +10:00
README.md haskell: update documentation for building the Haskell kernel 2017-02-03 16:23:56 +11:00
SEL4.cabal haskell: integrate all architectures 2017-08-09 17:02:49 +10:00
Setup.hs haskell: unify arm and arm-hyp haskell files 2017-07-03 10:30:49 +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 Removes all trailing whitespaces 2017-07-12 15:13:51 +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.