Skip to content

[BUG] #1269

@Matth9814

Description

@Matth9814

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions