Skip to content

Commit

Permalink
Hang when hss_main is not executed on hart=0
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Nowak <[email protected]>
  • Loading branch information
Novakov committed May 23, 2023
1 parent d7a4d5b commit 35f558f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/hart0/hss_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ int main(int argc, char **argv)
(void)argc; // unused
(void)argv; // unused

HSS_Init();

if (current_hartid() != 0) {
sbi_hart_hang();
}

HSS_Init();

hss_main();

// will never be reached
Expand Down

0 comments on commit 35f558f

Please sign in to comment.