summaryrefslogtreecommitdiff
path: root/mips/main.sail
diff options
context:
space:
mode:
authorRobert Norton2018-05-17 17:26:16 +0100
committerRobert Norton2018-05-17 17:29:37 +0100
commit2c5bbd6f7fbfdf32bafab50e36a1bebcd7cd8dab (patch)
treed1da5c12d566d80a230520ca5bbbc88710e27fa5 /mips/main.sail
parent1867ec89a4493ca6ce92c8926885c4090b6d3d5d (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.sail4
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 = {