Skip to content

Commit

Permalink
fix bug for booting tp without serial
Browse files Browse the repository at this point in the history
  • Loading branch information
swjtuer326 authored and xingxg2022 committed Sep 7, 2024
1 parent b34f366 commit 748244a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/generic/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ static int generic_early_init(bool cold_boot)
rc = semihosting_init();
else
rc = fdt_serial_init();
if (rc)

/* console is not a necessary device for tp scalar*/
if (rc == SBI_ENODEV)
return 0;
else if (rc)
return rc;
}

Expand Down

0 comments on commit 748244a

Please sign in to comment.