mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
Fix build for new rosbe-ppc.
svn path=/trunk/; revision=29071
This commit is contained in:
parent
ab5811a512
commit
e366497b95
|
@ -447,23 +447,6 @@ static __inline__ __attribute__((always_inline)) unsigned char _interlockedbitte
|
||||||
|
|
||||||
return (y & ~mask) != 0;
|
return (y & ~mask) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ __attribute__((always_inline)) long _InterlockedCompareExchange(volatile long * const Destination, const long Exchange, const long Comperand)
|
|
||||||
{
|
|
||||||
long retval = Comperand;
|
|
||||||
__asm__ __volatile__ (
|
|
||||||
"sync\n"
|
|
||||||
"1: lwarx %0,0,%1\n"
|
|
||||||
" subf. %0,%2,%0\n"
|
|
||||||
" bne 2f\n"
|
|
||||||
" stwcx. %3,0,%1\n"
|
|
||||||
" bne- 1b\n"
|
|
||||||
"2: isync"
|
|
||||||
: "=b" (retval)
|
|
||||||
: "b" (Destination), "r" (Comperand), "r" (Exchange)
|
|
||||||
: "cr0", "memory");
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static __inline__ __attribute__((always_inline)) long _InterlockedDecrement(volatile long * const lpAddend)
|
static __inline__ __attribute__((always_inline)) long _InterlockedDecrement(volatile long * const lpAddend)
|
||||||
|
|
Loading…
Reference in a new issue