Browse Source
Fixes #330 Set mstatus before querying uart (#343)
Co-authored-by: Airat Galiamov <DuzaBF@users.noreply.github.com>
pull/348/head
Airat Galiamov
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
machine/minit.c
|
|
|
@ -191,6 +191,7 @@ static void wake_harts() |
|
|
|
|
|
|
|
void init_first_hart(uintptr_t hartid, uintptr_t dtb) |
|
|
|
{ |
|
|
|
mstatus_init(); |
|
|
|
// Confirm console as early as possible
|
|
|
|
query_uart(dtb); |
|
|
|
query_uart16550(dtb); |
|
|
|
|