aboutsummaryrefslogtreecommitdiff
path: root/include/cpu/atomic
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-19 12:01:18 -0700
committerChristian Cunningham <cc@localhost>2022-01-19 12:01:18 -0700
commit49672787286b44c07561355b290946f80f334e58 (patch)
treeb6f79cc8228737eb76f5fe6f174bec54e74ec1f9 /include/cpu/atomic
parentd22b1c3cde432ea96408c329fe78fbf0a9da9a8e (diff)
Added clobbers
Diffstat (limited to 'include/cpu/atomic')
-rw-r--r--include/cpu/atomic/swap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cpu/atomic/swap.h b/include/cpu/atomic/swap.h
index cbed62c..32717fb 100644
--- a/include/cpu/atomic/swap.h
+++ b/include/cpu/atomic/swap.h
@@ -22,7 +22,7 @@ static inline void atm_lock(unsigned long pid, unsigned long* addr)
" dmb"
: "=&r" (current_lock_value), "=&r" (tmp)
: "r" (pid), "r" (addr)
- : "cc");
+ : "cc", "memory");
}
static inline void atm_release(unsigned long* addr)
@@ -34,7 +34,7 @@ static inline void atm_release(unsigned long* addr)
" dsb\n"
" sev"
:: "r" (cleared), "r" (addr)
- : "cc");
+ : "cc", "memory");
}
#endif