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
Great,
thank you for the fix.
BTW: dde_linux implements this correctly ;-)
Greets
l4-hackers@os.inf.tu-dresden.de