synchronization.h: Add __dmb() intrinsic
This commit is contained in:
parent
b93e7f19bf
commit
2ff08fbac8
@ -33,6 +33,12 @@ static inline void __dsb(void)
|
|||||||
__asm__ __volatile__("mcr p15, 0, %[val], c7, c10, 4" :: [val] "r" (0) : "memory");
|
__asm__ __volatile__("mcr p15, 0, %[val], c7, c10, 4" :: [val] "r" (0) : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Performs a Data Memory Barrier operation.
|
||||||
|
static inline void __dmb(void)
|
||||||
|
{
|
||||||
|
__asm__ __volatile__("mcr p15, 0, %[val], c7, c10, 5" :: [val] "r" (0) : "memory");
|
||||||
|
}
|
||||||
|
|
||||||
/// Performs a clrex operation.
|
/// Performs a clrex operation.
|
||||||
static inline void __clrex(void)
|
static inline void __clrex(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user