summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S2
-rw-r--r--MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm2
2 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S
index d699eb40d2..53e45a0b9a 100644
--- a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S
+++ b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.S
@@ -179,6 +179,7 @@ TryInternalSyncIncrement:
cmp r2, #0
bne TryInternalSyncIncrement
dmb
+ mov r0, r1
bx lr
/**
@@ -208,4 +209,5 @@ TryInternalSyncDecrement:
cmp r2, #0
bne TryInternalSyncDecrement
dmb
+ mov r0, r1
bx lr
diff --git a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm
index dbc5991140..1c9a183b8f 100644
--- a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm
+++ b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.asm
@@ -178,6 +178,7 @@ TryInternalSyncIncrement
cmp r2, #0
bne TryInternalSyncIncrement
dmb
+ mov r0, r1
bx lr
/**
@@ -207,6 +208,7 @@ TryInternalSyncDecrement
cmp r2, #0
bne TryInternalSyncDecrement
dmb
+ mov r0, r1
bx lr
END