Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: b65c0eed6bc028388d790fe4e30a76770ebb46c4
      
https://github.com/tianocore/edk2/commit/b65c0eed6bc028388d790fe4e30a76770ebb46c4
  Author: Dongyan Qian <qiandong...@loongson.cn>
  Date:   2023-05-05 (Fri, 05 May 2023)

  Changed paths:
    M MdePkg/Library/BaseSynchronizationLib/LoongArch64/AsmSynchronization.S
    M MdePkg/Library/BaseSynchronizationLib/LoongArch64/Synchronization.c

  Log Message:
  -----------
  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.kin...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang....@intel.com>
Cc: Chao Li <lic...@loongson.cn>
Signed-off-by: Dongyan Qian <qiandong...@loongson.cn>
Reviewed-by: Chao Li <lic...@loongson.cn>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to