Hi all,
while testing my rt_sja1000 CAN driver on RTAI 3.3 I found an annoying bug
in rtdm_driver.h The rtdm_sem_t is binary but must be counting. Patch
attached.
Sebastian
--- vulcano/addons/rtdm/rtdm_driver.h 2006-01-27 22:35:10.000000000 +0100
+++ vulcano.patched/addons/rtdm/rtdm_driver.h 2006-03-10 16:47:11.000000000
+0100
@@ -978,7 +978,7 @@ typedef struct rt_semaphore rtdm_sem_t;
static inline void rtdm_sem_init(rtdm_sem_t *sem, unsigned long value)
{
- rt_typed_sem_init(sem, value, BIN_SEM | PRIO_Q);
+ rt_typed_sem_init(sem, value, CNT_SEM | PRIO_Q);
}
static inline void rtdm_sem_destroy(rtdm_sem_t *sem)