aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machine/minit.c6
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);