summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/fence
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/fallbacks/fence')
-rwxr-xr-xscripts/atomic/fallbacks/fence11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/fence b/scripts/atomic/fallbacks/fence
new file mode 100755
index 000000000000..82f68fa6931a
--- /dev/null
+++ b/scripts/atomic/fallbacks/fence
@@ -0,0 +1,11 @@
+cat <<EOF
+static inline ${ret}
+${atomic}_${pfx}${name}${sfx}(${params})
+{
+ ${ret} ret;
+ __atomic_pre_full_fence();
+ ret = ${atomic}_${pfx}${name}${sfx}_relaxed(${args});
+ __atomic_post_full_fence();
+ return ret;
+}
+EOF