mbed-os/rtos/rtx5/TARGET_CORTEX_M/TARGET_M3
Jaeden Amero 778d6822bf RTX5: uVisor: Switch threads very carefully
uVisor doesn't set the PSP of the target thread. The RTOS sets the PSP
of the target thread from the target thread's TCB. However, when
interrupts of higher priority than PendSV happen between the call to
uVisor to switch boxes, and the RTOS setting PSP, the uVisor vIRQ
interrupt handler will attempt to use an invalid PSP (the PSP from
before the box and thread switch). This leads to a crash. Make box and
thread switching atomic by disabling interrupts immediately before the
box switching until immediately after the new PSP is set.
2017-06-04 14:41:59 +01:00
..
TOOLCHAIN_ARM Rename directories rtx->rtx4 rtx2->rtx5 2017-05-30 18:55:55 +01:00
TOOLCHAIN_GCC RTX5: uVisor: Switch threads very carefully 2017-06-04 14:41:59 +01:00
TOOLCHAIN_IAR Rename directories rtx->rtx4 rtx2->rtx5 2017-05-30 18:55:55 +01:00