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

前端 未结 4 1413
广开言路
广开言路 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:39

    It is atomic, as far as interrupt handling is concerned.

    If I remember correctly, interrupting the instruction causes it to be aborted and re-executed after interrupt processing has finished, in order to guarantee interrupt latency.

提交回复
热议问题