Dear all:
I have installed rtlinux v1.1 on a pentium 133 computer.
But the periodic process always block after the first two cycles.
Please help me!
the following code is very simple:
--------------------------------------------
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <rtl_sched.h>
#include <asm/rt_time.h>
#include <rtl_fifo.h>
#include <linux/cons.h>
RT_TASK mytask;
void
fun (int t)
{
conpr (" r \n");
rt_task_wait ();
}
int
init_module (void)
{
rt_task_init (&mytask, fun, 1, 3000, 5);
rt_task_make_periodic (&mytask, rt_get_time () + 10000, 100000);
printk ("RT-TASK-STARTED\n");
return 0;
}
void
cleanup_module (void)
{
rt_task_delete (&mytask);
rtf_destroy (1);
printk ("RT-TASK removed from the kernel\n");
}
_____________________________________________
首都在线--先进中国人的网上家园 http://www.263.net
免费邮箱 邮件杂志 签名邮件 邮件加密 邮件追身呼
搜索引擎 个人站点 在线游戏 网上聊天 网上挂号
金融王国 在线杀毒 跳蚤市场 软件下载 休闲娱乐
--- [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/