diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-11-02 18:02:09 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-11-02 18:02:09 -0700 |
commit | 21209988c72ee891727d5b9d548a224ae6958986 (patch) | |
tree | e0553ae62f3f6c49998e5a7ef48e32892bb4035b /machine | |
parent | 9204785053e9a488b8990f9f98ff8f05c71fd0d5 (diff) | |
download | riscv-pk-21209988c72ee891727d5b9d548a224ae6958986.zip riscv-pk-21209988c72ee891727d5b9d548a224ae6958986.tar.gz riscv-pk-21209988c72ee891727d5b9d548a224ae6958986.tar.bz2 |
Initialize the UART first
Without this I can't get printf to show me debug info during early boot.
Diffstat (limited to 'machine')
-rw-r--r-- | machine/minit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/machine/minit.c b/machine/minit.c index 8ce96b1..a324d06 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -132,12 +132,12 @@ static void wake_harts() 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); + hart_init(); + hls_init(0); // this might get called again from parse_config_string + // Find the power button early as well so die() works query_finisher(dtb); |