diff options
| author | Robert Norton | 2018-05-17 17:26:16 +0100 |
|---|---|---|
| committer | Robert Norton | 2018-05-17 17:29:37 +0100 |
| commit | 2c5bbd6f7fbfdf32bafab50e36a1bebcd7cd8dab (patch) | |
| tree | d1da5c12d566d80a230520ca5bbbc88710e27fa5 /mips/main.sail | |
| parent | 1867ec89a4493ca6ce92c8926885c4090b6d3d5d (diff) | |
changes to for testing FreeBSD boot on MIPS: allowing loading raw file in ocaml main so that we can have simboot + kernel. Support UART output only.
Diffstat (limited to 'mips/main.sail')
| -rw-r--r-- | mips/main.sail | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mips/main.sail b/mips/main.sail index 54fb34ee..45ced6d7 100644 --- a/mips/main.sail +++ b/mips/main.sail @@ -30,6 +30,10 @@ function fetch_and_execute () = { just continue from nextPC, which should have been set to the appropriate exception vector (along with clearing branchPending etc.) . */ }; + if UART_WRITTEN then { + putchar(unsigned(UART_WDATA)); + UART_WRITTEN = 0b0; + } } val elf_entry = { |
