mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
The context switch restored the interrupt mask of the status register from the context of the incoming thread, and _CPU_Context_Initialize() put every source into the context of every thread. The mask is the enable of each interrupt source, which rtems_interrupt_vector_enable() and its counterpart own, so a disable did not survive the next context switch and could not be offered at all. Keep only the coprocessor enable and the interrupt enable per thread. The interrupt enable is the interrupt level of this port. The mask becomes global state which the BSP establishes once, with the value the context of a thread carried before, so that the sources a board enables do not change. Update #5688. Assisted-by: Claude:claude-opus-5 claude-code Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>