* fixed return value of InterlockedCompareExchange(64) for ppc/ppc64,

bug exposed by tw13281

git-svn-id: trunk@13133 -
This commit is contained in:
Jonas Maebe 2009-05-11 07:26:48 +00:00
parent 5ddddf60ae
commit a24db8854c
2 changed files with 3 additions and 3 deletions
rtl
powerpc
powerpc64

View File

@ -1174,7 +1174,7 @@ asm
or r6,r7,r8
stwcx. r6,0,r3
bne .LInterlockedCompareExchangeLoop
mr r3, r6
mr r3, r10
end;
{$IFDEF MORPHOS}

View File

@ -682,7 +682,7 @@ asm
or r6,r7,r8
stwcx. r6,0,r3
bne .LInterlockedCompareExchangeLoop
mr r3, r6
mr r3, r10
end;
function InterLockedDecrement64(var Target: Int64) : Int64; assembler; nostackframe;
@ -754,7 +754,7 @@ asm
or r6,r7,r8
stdcx. r6,0,r3
bne .LInterlockedCompareExchangeLoop
mr r3, r6
mr r3, r10
end;
{$ifndef FPC_SYSTEM_HAS_MEM_BARRIER}