audk/MdePkg/Library/BaseSynchronizationLib
Dongyan Qian b65c0eed6b BaseSynchronizationLib: Fix LoongArch64 synchronization functions
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4432

There is a return value bug:
The sc.w/sc.d instruction will destroy the reg_t0,
use reg_t1 to avoid context reg_t0 being corrupted.
Adjust Check that ptr align is UINT16.
Optimize function SyncIncrement and SyncDecrement.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Chao Li <lichao@loongson.cn>
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
Reviewed-by: Chao Li <lichao@loongson.cn>
2023-05-05 13:10:09 +00:00
..
AArch64 MdePkg/BaseSynchronizationLib AARCH64: Make asm files BTI compatible 2023-03-30 11:05:22 +00:00
Arm MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
Ebc MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Ia32 MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LoongArch64 BaseSynchronizationLib: Fix LoongArch64 synchronization functions 2023-05-05 13:10:09 +00:00
RiscV64 BaseSynchronizationLib: Fix RISC-V helper name 2022-11-29 09:53:15 +00:00
X64 MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BaseSynchronizationLib.inf BaseSynchronizationLib: Fix RISC-V helper name 2022-11-29 09:53:15 +00:00
BaseSynchronizationLib.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
BaseSynchronizationLibInternals.h MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
InterlockedDecrementMsc.c MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
InterlockedIncrementMsc.c MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Synchronization.c MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SynchronizationGcc.c MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SynchronizationMsc.c MdePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00