Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression Bug Fix: Fix Incorrect Return of MSVC-MingW portYIELD_FROM_ISR #1207

Merged

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".
Copy link

sonarcloud bot commented Dec 16, 2024

@aggarg aggarg merged commit 3ddfffd into FreeRTOS:main Dec 16, 2024
17 checks passed
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