ARM: Is “STMDB SP!, {R0-R8}” (aka PUSH {R0-R8}) an atomic operation?

前端 未结 4 1419
广开言路
广开言路 2020-12-19 12:25

I wonder if STMDB SP!, {R0-R8} is an atomic operation in ARM(v7), because it looks quite complex to me. So is it for example possible, that the CPU is interrupted somewhere

4条回答
  •  清歌不尽
    2020-12-19 12:34

    If configured, it can be interrupted then restarted (not continued). It can also be aborted if the memory is inaccessable.

    It is not atomic with respect to other devices.

提交回复
热议问题