summaryrefslogtreecommitdiffstats
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 000000000..07757d8e3
--- /dev/null
+++ b/scripts/atomic/fallbacks/fence
@@ -0,0 +1,11 @@
+cat <<EOF
+static __always_inline ${ret}
+arch_${atomic}_${pfx}${name}${sfx}(${params})
+{
+ ${ret} ret;
+ __atomic_pre_full_fence();
+ ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args});
+ __atomic_post_full_fence();
+ return ret;
+}
+EOF