lll_lock on PPC
Steve Munroe
sjmunroe@us.ibm.com
Tue Jun 22 21:13:00 GMT 2004
Thorsten Kukuk <kukuk@suse.de> wrote on 06/22/2004 02:35:04 PM:
>
> Hi,
>
> if I look at the lll_lock implementation on ix86 and PPC, it seems
> to me, that on ix86, lll_lock will only call lll_mutex_lock, if
> the program is linked against libpthread. But on PPC, lll_lock is
> always called, which can lead to a deadlock.
>
> Is this correct?
For POWER lll_mutex_lock is a inline macro using
atomic_compare_and_exchange_val_acq. lll_lock is just an alias for
lll_mutex_lock:
#define lll_lock(lock) lll_mutex_lock (lock)
There is no call. See
libc/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center
More information about the Libc-hacker
mailing list