]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Include/Library/SynchronizationLib.h
MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 28 Feb 2015 20:31:54 +0000 (20:31 +0000)
committerlersek <lersek@Edk2>
Sat, 28 Feb 2015 20:31:54 +0000 (20:31 +0000)
commit9b89163eea30762f7ab91dcdc414820173cbf858
treefb413e3b86023d358593766371ee0341b9c7368d
parentcc3104283f47d99a68e555582a3298a26735eb84
MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16

This implements the function InterlockedCompareExchange16 () for all
architectures, using architecture and toolchain specific intrinsics
or primitive assembler instructions.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16966 6f19259b-4bc3-4df7-8a09-765794883524
17 files changed:
MdePkg/Include/Library/SynchronizationLib.h
MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S
MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S
MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLibInternals.h
MdePkg/Library/BaseSynchronizationLib/Ebc/Synchronization.c
MdePkg/Library/BaseSynchronizationLib/Ia32/GccInline.c
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange16.asm [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange16.c [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/Ipf/InterlockedCompareExchange16.s [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/Synchronization.c
MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
MdePkg/Library/BaseSynchronizationLib/SynchronizationMsc.c
MdePkg/Library/BaseSynchronizationLib/X64/GccInline.c
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange16.asm [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange16.c [new file with mode: 0644]