mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
arch assertions: Correct duplicated logic from commit dbf01d12b7. Checking for PID == zero is not a valid way to test for the IDLE task in all configurations! This is only true in the single CPU configuration. In multiple CPU configurations, there will be a separate IDLE task for each CPU with a different PID.
This commit is contained in:
@@ -126,7 +126,7 @@ static void xtensa_assert(int errorcode)
|
||||
|
||||
/* Are we in an interrupt handler or the idle task? */
|
||||
|
||||
if (CURRENT_REGS || running_task()->pid == 0)
|
||||
if (CURRENT_REGS || running_task()->flink == NULL)
|
||||
{
|
||||
/* Blink the LEDs forever */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user