diff options
author | Sunil V L <sunilvl@ventanamicro.com> | 2022-11-11 19:21:06 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-11-29 09:53:15 +0000 |
commit | b92e0495221a3b298b069d9fb01e48fd2a0469f6 (patch) | |
tree | c4a435cf0c7ce8db3d6c625db131e88baa202e6e | |
parent | c8c978d32882413eeaf2b9917409af83af68cb5d (diff) | |
download | edk2-b92e0495221a3b298b069d9fb01e48fd2a0469f6.zip edk2-b92e0495221a3b298b069d9fb01e48fd2a0469f6.tar.gz edk2-b92e0495221a3b298b069d9fb01e48fd2a0469f6.tar.bz2 |
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>
-rwxr-xr-x | MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf | 2 | ||||
-rw-r--r-- | MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf b/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf index dd66ec1..88dfb88 100755 --- a/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf +++ b/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf @@ -81,7 +81,7 @@ [Sources.RISCV64]
Synchronization.c
- RiscV64/Synchronization.S
+ RiscV64/Synchronization.S | GCC
[Sources.LOONGARCH64]
Synchronization.c
diff --git a/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S b/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S index bac80d6..f287ef3 100644 --- a/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S +++ b/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S @@ -36,8 +36,6 @@ exit: mv a0, a3
ret
-.global ASM_PFX(InternalSyncCompareExchange64)
-
//
// Compare and xchange a 64-bit value.
//
@@ -45,7 +43,7 @@ exit: // @param a1 : Compare value.
// @param a2 : Exchange value.
//
-ASM_PFX (SyncCompareExchange64):
+ASM_PFX (InternalSyncCompareExchange64):
lr.d a3, (a0) // Load the value from a0 and make
// the reservation of address.
bne a3, a1, exit
|