Skip to content

[BUG] #1269

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

Open
Matth9814 opened this issue Apr 25, 2025 · 1 comment
Open

[BUG] #1269

Matth9814 opened this issue Apr 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Matth9814
Copy link

Describe the bug
Interrupts are mistakenly enabled within vTaskSwitchContext when configCHECK_FOR_STACK_OVERFLOW is enabled and configNUMBER_OF_CORES > 1 as described in the following discussion: https://forums.freertos.org/t/cortex-a9-port-disable-interrupts-before-writing-to-icc-pmr/22952

Target
FreeRTOS ports that support SMP and, like the Cortex-A9 port in ulPortSetInterruptMask and vPortClearInterruptMask, disable and enable interrupts regardless of the current processor state.

Expected behavior
The interrupts should stay disabled in specific sections (e.g. FreeRTOS_SWI_Handler in the Cortex-A9 port).

@Matth9814 Matth9814 added the bug Something isn't working label Apr 25, 2025
@jasonpcarroll
Copy link
Member

Hi @Matth9814,

Thank you for bringing this to our attention. From the forum post you linked, it looked like you mentioned you would raise a PR for this. Please do and I will review. :)

Best,

Jason Carroll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants