mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 12:44:50 +02:00
BaseSynchronizationLib: Fix RISC-V helper name
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4143 Fix the name of InternalSyncCompareExchange64() function. Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Reported-by: Zhihao Li <zhihao.li@intel.com> Tested-by: Zhihao Li <zhihao.li@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Daniel Schaefer <git@danielschaefer.me> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
c8c978d328
commit
b92e049522
@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
[Sources.RISCV64]
|
[Sources.RISCV64]
|
||||||
Synchronization.c
|
Synchronization.c
|
||||||
RiscV64/Synchronization.S
|
RiscV64/Synchronization.S | GCC
|
||||||
|
|
||||||
[Sources.LOONGARCH64]
|
[Sources.LOONGARCH64]
|
||||||
Synchronization.c
|
Synchronization.c
|
||||||
|
@ -36,8 +36,6 @@ exit:
|
|||||||
mv a0, a3
|
mv a0, a3
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.global ASM_PFX(InternalSyncCompareExchange64)
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Compare and xchange a 64-bit value.
|
// Compare and xchange a 64-bit value.
|
||||||
//
|
//
|
||||||
@ -45,7 +43,7 @@ exit:
|
|||||||
// @param a1 : Compare value.
|
// @param a1 : Compare value.
|
||||||
// @param a2 : Exchange value.
|
// @param a2 : Exchange value.
|
||||||
//
|
//
|
||||||
ASM_PFX (SyncCompareExchange64):
|
ASM_PFX (InternalSyncCompareExchange64):
|
||||||
lr.d a3, (a0) // Load the value from a0 and make
|
lr.d a3, (a0) // Load the value from a0 and make
|
||||||
// the reservation of address.
|
// the reservation of address.
|
||||||
bne a3, a1, exit
|
bne a3, a1, exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user