diff options
author | Wesley W. Terpstra <wesley@sifive.com> | 2017-03-27 12:13:53 -0700 |
---|---|---|
committer | Wesley W. Terpstra <wesley@sifive.com> | 2017-03-27 15:50:22 -0700 |
commit | 9fa7b30887301f149f2497469a442d0887b21149 (patch) | |
tree | 33b67126a0fb86de8603aa8cae2496f2342f45d0 /machine/minit.c | |
parent | 3473915b3a3fd925a68fc3260c64824cab2846d2 (diff) | |
download | pk-9fa7b30887301f149f2497469a442d0887b21149.zip pk-9fa7b30887301f149f2497469a442d0887b21149.tar.gz pk-9fa7b30887301f149f2497469a442d0887b21149.tar.bz2 |
uart: add physical device driver
Diffstat (limited to 'machine/minit.c')
-rw-r--r-- | machine/minit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/machine/minit.c b/machine/minit.c index 48366d7..6fc51c6 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -3,6 +3,7 @@ #include "vm.h" #include "fp_emulation.h" #include "fdt.h" +#include "uart.h" #include <string.h> #include <limits.h> @@ -125,6 +126,10 @@ void init_first_hart(uintptr_t hartid, uintptr_t dtb) hart_init(); hls_init(0); // this might get called again from parse_config_string + // Confirm console as early as possible + query_uart(dtb); + printm("SBI console now online\n"); + query_mem(dtb); query_harts(dtb); query_clint(dtb); |