ARM 的访存指令
普通访存指令
特殊访存指令
原子访存指令
屏障指令
- arm fence method
mmu page table attribute // device nocache
LDAR & STLR // one-way barries // one-sided fences
DMB // full fence
DSB // full fence
ISB // full fence
循环跳出保证order
arm 的三个 full fence 指令 ,他们影响的范围是 从小到大 分别为
// 我认为具体要用什么屏障,要看你要影响到什么范围.
DMB DSB ISB
- arm atomic method
ldrex & strex
swp
swpb
cas // 8.1
ldxr & stxr
ldadd // 8.1
单核关中断