Merge branch 'main' into stack_overflow_check

This commit is contained in:
Gaurav-Aggarwal-AWS 2025-02-16 14:26:48 +05:30 committed by GitHub
commit b0d5547ba7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@
* Note: When using LLDB (the default debugger on macOS) with this port, * Note: When using LLDB (the default debugger on macOS) with this port,
* suppress SIGUSR1 to prevent debugger interference. This can be * suppress SIGUSR1 to prevent debugger interference. This can be
* done by adding the following line to ~/.lldbinit: * done by adding the following line to ~/.lldbinit:
* `process handle SIGUSR1 -n true -p true -s false` * `process handle SIGUSR1 -n true -p false -s false`
*----------------------------------------------------------*/ *----------------------------------------------------------*/
#ifdef __linux__ #ifdef __linux__
#define _GNU_SOURCE #define _GNU_SOURCE
@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
void vPortYield( void ) void vPortYield( void )
{ {
/* This must never be called from outside of a FreeRTOS-owned thread, or
* the thread could get stuck in a suspended state. */
configASSERT( prvIsFreeRTOSThread() == pdTRUE );
vPortEnterCritical(); vPortEnterCritical();
prvPortYieldFromISR(); prvPortYieldFromISR();