mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Merge branch 'main' into stack_overflow_check
This commit is contained in:
commit
b0d5547ba7
6
portable/ThirdParty/GCC/Posix/port.c
vendored
6
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue