Skip to content

Conversation

@aggarg
Copy link
Member

@aggarg aggarg commented May 2, 2025

Description

This reverts PR 1270. As concluded in the discussion here, if portSET_INTERRUPT_MASK and portCLEAR_INTERRUPT_MASK are implemented correctly to support recursive calls, this change is not needed.

Test Steps

NA.

Checklist:

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

Related Issue

NA.

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

@aggarg aggarg requested a review from a team as a code owner May 2, 2025 04:26
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2025

Copy link
Member

@AhmedIsmail02 AhmedIsmail02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aggarg Thank you for the changes, can you please fix the link-verifier CI check failure? I think it might be a transient error that might be fixed if restarted as they are all too-many-requests errors.

@kar-rahul-aws kar-rahul-aws merged commit e3a0e3e into FreeRTOS:main May 5, 2025
51 of 61 checks passed
@aggarg aggarg deleted the revert_pr_1270 branch May 5, 2025 10:33
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
…#1273)

* Cortex R4 demo: replace setup script with linked resources

* Cortex R4 demo: remove Eclipse user settings
@raceant
Copy link

raceant commented Nov 17, 2025

@aggarg As the issue #1270,the taskCHECK_FOR_STACK_OVERFLOW macro is invoked within the vTaskSwitchContext function, which itself may be called by the swi (software interrupt) handler. The call graph is as follows:

SWI_Handler ==> vTaskSwitchContext ==> taskCHECK_FOR_STACK_OVERFLOW  ==> pxCurrentTCB ==> portSET_INTERRUPT_MASK/portCLEAR_INTERRUPT_MASK 

taskCHECK_FOR_STACK_OVERFLOW();

Is the proper functioning of the aforementioned code dependent on portSET_INTERRUPT_MASK/portCLEAR_INTERRUPT_MASK have the same definition as portSET_INTERRUPT_MASK_FROM_ISR/portCLEAR_INTERRUPT_MASK_FROM_ISR ?

@aggarg
Copy link
Member Author

aggarg commented Nov 19, 2025

Is the proper functioning of the aforementioned code dependent on portSET_INTERRUPT_MASK/portCLEAR_INTERRUPT_MASK have the same definition as portSET_INTERRUPT_MASK_FROM_ISR/portCLEAR_INTERRUPT_MASK_FROM_ISR ?

portSET_INTERRUPT_MASK_FROM_ISR/portCLEAR_INTERRUPT_MASK_FROM_ISR are only needed for nested interrupt. The context switch interrupt runs at the lowest priority and therefore, it should not be a problem.

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.

4 participants