Revision: 18685
http://sourceforge.net/p/edk2/code/18685
Author: leiflindholm
Date: 2015-10-27 11:56:57 +0000 (Tue, 27 Oct 2015)
Log Message:
-----------
MdePkg/BaseSynchronizationLib: fix AArch64 return values
Fix the wrong return value of both InternalSyncIncrement()
and InternalSyncDecrement(). The return value shouldn't
be the address of input parameter. It should be the updated
value of input parameter instead.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Haojian Zhuang <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S
Modified:
trunk/edk2/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S
===================================================================
--- trunk/edk2/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S
2015-10-27 10:19:29 UTC (rev 18684)
+++ trunk/edk2/MdePkg/Library/BaseSynchronizationLib/AArch64/Synchronization.S
2015-10-27 11:56:57 UTC (rev 18685)
@@ -171,6 +171,7 @@
add w1, w1, #1
stxr w2, w1, [x0]
cbnz w2, TryInternalSyncIncrement
+ mov w0, w1
dmb sy
ret
@@ -199,5 +200,6 @@
sub w1, w1, #1
stxr w2, w1, [x0]
cbnz w2, TryInternalSyncDecrement
+ mov w0, w1
dmb sy
ret
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits