Skip to content

Conversation

@wwhheerree
Copy link
Contributor

@wwhheerree wwhheerree commented Dec 15, 2024

Description

This is a regression issue introduced in cfc2688.
That 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".
image

Test Steps

"prvProcessSimulatedInterrupts" checks the return value of ISR (portYIELD_FROM_ISR( x )) and updates ulSwitchRequired.
image
I tested on my laptop. The current return value is 0x52 which is due to missing return value of portYIELD_FROM_ISR( x ).
image
After this patch, the returned value is correct.
image

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

FreeRTOS/FreeRTOS#1310

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…_ISR

    There is a regression issue introduced in
    FreeRTOS@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".
@sonarqubecloud
Copy link

@aggarg aggarg merged commit 3ddfffd into FreeRTOS:main Dec 16, 2024
17 checks passed
bknicholls pushed a commit to vypex-software/FreeRTOS-Kernel that referenced this pull request Jan 7, 2025
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
* Update kernel submodule pointer for vTaskSuspendAll change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants