diff --git a/libctru/include/3ds/synchronization.h b/libctru/include/3ds/synchronization.h index fdf52f8..bbd18f4 100644 --- a/libctru/include/3ds/synchronization.h +++ b/libctru/include/3ds/synchronization.h @@ -33,6 +33,12 @@ static inline void __dsb(void) __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. static inline void __clrex(void) {