3 ms·
> These are defined in a way that they cannot be interrupted mid-instruction... Usually. Cortex-M3 and M4 cores allow LDM/STM to be interrupted by default, and
by duskwuff 5y ago
> These are defined in a way that they cannot be interrupted mid-instruction...
Usually. Cortex-M3 and M4 cores allow LDM/STM to be interrupted by default, and offer a flag to disable that (SCB->ACTLR.DISMCYCINT).
https://developer.arm.com/documentation/ddi0439/b/System-Control/Register-descriptions/Auxiliary-Control-Register--ACTLR https://developer.arm.com/documentation/ddi0439/b/System-Con...
- dvdkhlng 5y agoYes, looks like they added a few bits to the PSR register to capture the internal state of LDM/STM . Like a small version of x86's CS register.