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