dde_linux26 down_trylock bug

Wei Shen cquark at gmail.com
Mon Nov 28 10:24:18 CET 2005


Hi,

In dde_linux26/include/ARCH-x86/asm/semaphore.h:

static inline int down_trylock(struct semaphore * sem)
{
    return l4semaphore_try_down(&sem->l4_sema);
}

It seems incorrect. Maybe it should be:

static inline int down_trylock(struct semaphore * sem)
{
    return (l4semaphore_try_down(&sem->l4_sema) != 1);
}

Regards,

Wei




More information about the l4-hackers mailing list