diff options
-rw-r--r-- | MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S b/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S index ecb87fc127..9513b1a1bb 100644 --- a/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S +++ b/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S @@ -171,6 +171,7 @@ TryInternalSyncIncrement: add w1, w1, #1
stxr w2, w1, [x0]
cbnz w2, TryInternalSyncIncrement
+ mov w0, w1
dmb sy
ret
@@ -199,5 +200,6 @@ TryInternalSyncDecrement: sub w1, w1, #1
stxr w2, w1, [x0]
cbnz w2, TryInternalSyncDecrement
+ mov w0, w1
dmb sy
ret
|