2018-09-04 11:48:25 +01:00
|
|
|
cat <<EOF
|
2019-11-26 15:04:05 +01:00
|
|
|
static __always_inline ${ret}
|
2021-07-13 11:52:50 +01:00
|
|
|
arch_${atomic}_${pfx}${name}${sfx}(${params})
|
2018-09-04 11:48:25 +01:00
|
|
|
{
|
|
|
|
|
${ret} ret;
|
|
|
|
|
__atomic_pre_full_fence();
|
2021-07-13 11:52:50 +01:00
|
|
|
ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args});
|
2018-09-04 11:48:25 +01:00
|
|
|
__atomic_post_full_fence();
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
EOF
|