Skip to content

Commit b0d5547

Browse files
authored
Merge branch 'main' into stack_overflow_check
2 parents f32e92b + 1a1ae36 commit b0d5547

File tree

1 file changed

+5
-1
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+5
-1
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* Note: When using LLDB (the default debugger on macOS) with this port,
5353
* suppress SIGUSR1 to prevent debugger interference. This can be
5454
* done by adding the following line to ~/.lldbinit:
55-
* `process handle SIGUSR1 -n true -p true -s false`
55+
* `process handle SIGUSR1 -n true -p false -s false`
5656
*----------------------------------------------------------*/
5757
#ifdef __linux__
5858
#define _GNU_SOURCE
@@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
384384

385385
void vPortYield( void )
386386
{
387+
/* This must never be called from outside of a FreeRTOS-owned thread, or
388+
* the thread could get stuck in a suspended state. */
389+
configASSERT( prvIsFreeRTOSThread() == pdTRUE );
390+
387391
vPortEnterCritical();
388392

389393
prvPortYieldFromISR();

0 commit comments

Comments
 (0)