cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fence (237B)


      1cat <<EOF
      2static __always_inline ${ret}
      3arch_${atomic}_${pfx}${name}${sfx}(${params})
      4{
      5	${ret} ret;
      6	__atomic_pre_full_fence();
      7	ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args});
      8	__atomic_post_full_fence();
      9	return ret;
     10}
     11EOF