Datasheet
182
SAM4S Series [DATASHEET]
11100F–ATARM–29-Jan-14
Examples
CPSID i ; Disable interrupts and configurable fault handlers (set PRIMASK)
CPSID f ; Disable interrupts and all fault handlers (set FAULTMASK)
CPSIE i; Enable interrupts and configurable fault handlers (clear PRIMASK)
CPSIE f; Enable interrupts and fault handlers (clear FAULTMASK)
12.6.11.3 DMB
Data Memory Barrier.
Syntax
DMB{cond}
where:
cond is an optional condition code, see “Conditional Execution” .
Operation
DMB acts as a data memory barrier. It ensures that all explicit memory accesses that appear, in program order, before
the DMB instruction are completed before any explicit memory accesses that appear, in program order, after the DMB
instruction. DMB does not affect the ordering or execution of instructions that do not access memory.
Condition Flags
This instruction does not change the flags.
Examples
DMB ; Data Memory Barrier