Browse Source

Initialize the UART first

Without this I can't get printf to show me debug info during early boot.
pull/67/head
Palmer Dabbelt 9 years ago
parent
commit
21209988c7
  1. 6
      machine/minit.c

6
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);

Loading…
Cancel
Save