$BCfLn(B $B>!G7(B wrote:
>
> Hello.
>
>
> But, rtl_sched.o stops when rt_task_make_periodic is called.
>
> I checked the program by inserting "printk()" and
>
> found that the program stopped at "rtl_switch_to()" in the function, rtl_schedule().
Hi,
I'm working on a Dual-PIII system with an SMP kernel 2.2.0 and RTL2D.
I've tried rt_task_make_periodic and it works fine.
So , I give you my exemple in order to try it on your system ( it's very
simple ,
but it is just to test the periodic task. ).
While making this exemple , I've done a bug at first ( which look like
your pb :) :
I forgot that the periodic function MUST NOT END ( I didn't use perioc
function for a while). It have to be an unended loop ,
and rtl_sched will only unblock the rt_task_wait() of your function.
The pb I got , forgetting that at the beginning , was a freezed system !
Good Luck.
-- KUMSTA Christophe
-- <[EMAIL PROTECTED]>
-- real-time system developper
-- RT-Linux (Use the source luke)
CC = egcs
CFLAGS = -mpentiumpro -O3 -Wall
INCS = -I/usr/src/linux/include
all : essai1
essai1 : essai1.c
${CC} ${CFLAGS} ${INCS} -D__RT__ -D__KERNEL__ -D__SMP__ -c essai1.c
essai1.c