thermosphere: add proper memory/instruction barriers for breakpoint stuff

This commit is contained in:
TuxSH
2020-01-09 22:47:22 +00:00
parent 0dd5f1f6d4
commit edb942a032
6 changed files with 19 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ static inline u##sz __##op##sz(u##sz n)\
_DECLARE_ASM_ARITHMETIC_UNARY_HELPER64(rbit)
_DECLARE_ASM_ARITHMETIC_UNARY_HELPER32(rbit)
static inline void __dmb_sy(void)
{
__asm__ __volatile__ ("dmb sy" ::: "memory");
}
static inline void __dsb_sy(void)
{
__asm__ __volatile__ ("dsb sy" ::: "memory");