diff options
author | Dongyan Qian <qiandongyan@loongson.cn> | 2023-04-27 20:57:12 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-05 13:10:09 +0000 |
commit | b65c0eed6bc028388d790fe4e30a76770ebb46c4 (patch) | |
tree | 009c86844cc2bba1d449dddbe5c0ae627d156479 /OvmfPkg | |
parent | 757f502a3b350436877102c3043744e021537c19 (diff) | |
download | edk2-b65c0eed6bc028388d790fe4e30a76770ebb46c4.tar.gz |
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>
Diffstat (limited to 'OvmfPkg')
0 files changed, 0 insertions, 0 deletions