summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-09-07 17:26:14 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-09-25 10:02:53 +0800
commit17634d026f968c404b039a8d8431b6389dd396ea (patch)
tree765dfedfdd01cba576b4065560fa02ceb0547e9f /BaseTools/Source/Python/Workspace
parentca3e4f8ab82485edff2cfa7eeb87f71b4be38966 (diff)
downloadedk2-17634d026f968c404b039a8d8431b6389dd396ea.tar.gz
edk2-17634d026f968c404b039a8d8431b6389dd396ea.tar.bz2
edk2-17634d026f968c404b039a8d8431b6389dd396ea.zip
MdePkg/SynchronizationLib: fix Interlocked[De|In]crement return value
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1197 Today's InterlockedIncrement()/InterlockedDecrement() guarantees to perform atomic increment/decrement but doesn't guarantee the return value equals to the new value. The patch fixes the behavior to use "XADD" instruction to guarantee the return value equals to the new value. The patch calls intrinsic functions for MSVC tool chain, calls the NASM implementation for INTEL tool chain and calls GCC inline assembly implementation (GccInline.c) for GCC tool chain. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
0 files changed, 0 insertions, 0 deletions