MdePkg/BaseSynchronizationLib: Added proper support for ARM architecture

This implements the following synchronization primitives for AArch64 (GCC)
and ARM (GCC & RVCT):

InternalSyncCompareExchange32
InternalSyncCompareExchange64
InternalSyncIncrement
InternalSyncDecrement

Note: these functions are implemented using the exclusive monitor,
which implies that they can only be used after the caches (and hence
the MMU) have been enabled.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.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@16965 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin
2015-02-28 20:31:40 +00:00
committed by lersek
parent f98490369f
commit cc3104283f
6 changed files with 497 additions and 232 deletions

View File

@@ -78,11 +78,12 @@
[Sources.ARM]
Synchronization.c
Arm/Synchronization.c
Arm/Synchronization.asm | RVCT
Arm/Synchronization.S | GCC
[Sources.AARCH64]
Synchronization.c
AArch64/Synchronization.c
AArch64/Synchronization.S
[Packages]
MdePkg/MdePkg.dec