當前位置:編程學習大全網 - 編程軟體 - 嵌入式 匯編 arm : mcr p15,0,r0,c7,c10,4 \ n 是什麽意思?

嵌入式 匯編 arm : mcr p15,0,r0,c7,c10,4 \ n 是什麽意思?

這條語句為ARM的協處理命令,妳沒說具體的ARM型號所以這條語句的效果無從而知。

MCR p15,0,<Rd>,c7,c10,4 ; Data Synchronization Barrier operation.數據同步屏障操作。

可查看官方內核手冊:

This instruction acts as an explicit memory barrier. This instruction completes when all

explicit memory transactions occurring in program order before this instruction are

completed. No instructions occurring in program order after this instruction are

executed until this instruction completes. Therefore, no explicit memory transactions

occurring in program order after this instruction are started until this instruction

completes. See Explicit Memory Barriers on page 6-30.

It can be used instead of Strongly Ordered memory when the timing of specific stores

to the memory system has to be controlled. For example, when a store to an interrupt

acknowledge location must be completed before interrupts are enabled.

The Data Synchronization Barrier operation can be performed in both privileged and

User modes of operation.

  • 上一篇:MATLAB中的階乘函數是什麽?
  • 下一篇:有朋友試過wedo2.0和scratch連接嗎
  • copyright 2024編程學習大全網