Skip to content

Commit

Permalink
Regression Bug Fix: Fix Incorrect Return of MSVC-MingW portYIELD_FROM…
Browse files Browse the repository at this point in the history
…_ISR (#1207)

There is a regression issue introduced in
    cfc2688.
    This PR was intended to update MIT licensed header from v9 to v10.
    But it accidentally changed "portYIELD_FROM_ISR( x )" in MSVC-MingW/portmacro.h.
    It caused "portYIELD_FROM_ISR( x )" does not return correct value to "prvProcessSimulatedInterrupts".
  • Loading branch information
wwhheerree authored Dec 16, 2024
1 parent b58005a commit 3ddfffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portable/MSVC-MingW/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extern volatile BaseType_t xInsideInterrupt;

/* Simulated interrupts return pdFALSE if no context switch should be performed,
* or a non-zero number if a context switch should be performed. */
#define portYIELD_FROM_ISR( x ) ( void ) x
#define portYIELD_FROM_ISR( x ) return x
#define portEND_SWITCHING_ISR( x ) portYIELD_FROM_ISR( ( x ) )

void vPortCloseRunningThread( void * pvTaskToDelete,
Expand Down

0 comments on commit 3ddfffd

Please sign in to comment.