I tried rt_ipc in rtl/semaphore under rtlinux-2.0pre5.
I uncommented CONFIG_RTL_USE_V1_API in rtl/include/rtl_conf.h
and recompiled rtlinux-2.0pre5 modules because rt_ipc uses
rtlinux-1.x style task API.
But I failed to compile the rt_ipc.c. To debug this error,
I read some source files and could find some mistakes.
Although the rt_ipc package is v0.3, it was modifed from
original v0.3 package. The rt_ipc.c file in rtl/semaphore
has the following pthread codes:
int rt_task_delay(RTIME duration)
{
...
/* mark the task as delayed */
pthread_self()->spec.it_value = RTIME_to_timespec(duration);
pthread_self()->spec.it_interval = RTL_TIME_ZERO;
pthread_self()->state = RTL_THREAD_DELAYED;
...
}
The compilation errors are the followings:
1. pthread_self() returns pthread_t data type(type-defined as struct
rtl_thread_struct date type defined in rtl/include/rtl_sched.h)
but the struct has no member named 'spec'.
2. RTL_TIME_ZERO is undeclared.
The rt_ipc under rtlinux-2.0pre6 has the same code.
Is there someone who succeeded in compiling rt_ipc on rtlinux-2.0?
If the rt_ipc does not work yet, what should I do to contribute
toward the completion of this work?
Thanks in advance.
Heo, Sung-Gwan
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/