Skip to content

Commit

Permalink
[smp] remove core1 boot timeout
Browse files Browse the repository at this point in the history
booting can take quite a while (depending on cache sizes)
  • Loading branch information
stnolting committed Feb 8, 2025
1 parent ae9b153 commit 8d7e843
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sw/lib/source/neorv32_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,15 @@ int neorv32_smp_launch(int (*entry_point)(void), uint8_t* stack_memory, size_t s
neorv32_clint_msi_set(1);

// wait for start acknowledge
int cnt = 0;
while (1) {
if (neorv32_smp_icc_avail()) {
if (neorv32_smp_icc_get() == magic_number) {
return 0;
}
else {
return -2;
}
}
if (cnt > 1000) {
return -2; // timeout; core1 did not respond
}
cnt++;
}
}

Expand Down

0 comments on commit 8d7e843

Please sign in to comment.