All of lore.kernel.org
 help / color / mirror / Atom feed
From: 嵌入式工程师 <ericvic@163.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] freescale(imx53)  with xenomai patch
Date: Mon, 3 Jun 2013 09:36:27 +0800 (CST)	[thread overview]
Message-ID: <37d33293.2abd.13f07ada45c.Coremail.ericvic@163.com> (raw)
In-Reply-To: <51A9C9EF.2040702@xenomai.org>

To prevent re-entry
在 2013-06-01 18:16:15,"Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org> 写道:
>On 06/01/2013 10:41 AM, 嵌入式工程师 wrote:
>
>> I have try the kernal-3.4.6 with ipipe-core-3.4.6-arm-4.patch 
>> when I set three same Priority tasks I found untill the tasks stop ,the interrut founction will not run.
>> It same like before version kernal-2.6.35.9 with  ipipe-core-2.6.35.9-arm-4.patch
>> 
>> 
>> static int test_thread(void *data)
>> {
>> 	//phase=ctrl_mnm1221_m();
>> 	while(1)
>> 	{
>> 	if(flag)
>> 	{
>> 		printk("runting %lld\n",tt3);
>> 		flag=0;
>> 		}
>> 	SLEEP_MILLI_SEC(50);
>> 
>> 	}
>> 	return 0;
>> }
>> 
>> int irq_handle_function(int irq, void *device_id)
>> {
>> 	//if(phase==PH_RUNNING)
>> 	//ctrl_mnm1221_m();
>> 	rt_intr_disable(&amp;intr_desc);
>> 	tt1=rt_timer_read();
>> 	tt3=tt1-tt2;
>> 	if(tt3&gt;300000)
>> 	flag=1;
>> 	tt2=tt1;
>> 	rt_intr_enable(&amp;intr_desc);
>> 	return RT_INTR_HANDLED;;
>> }
>
>
>Why do you disable/enable the irq during the irq handler?
>
>
>-- 
>                                                                Gilles.



  reply	other threads:[~2013-06-03  1:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 15:27 [Xenomai] freescale(imx53) with xenomai patch 嵌入式工程师
2013-05-30 18:21 ` Gilles Chanteperdrix
2013-05-31  1:34   ` 嵌入式工程师
2013-05-31  1:36     ` 嵌入式工程师
2013-05-31  5:32       ` Gilles Chanteperdrix
2013-05-31  5:54         ` 嵌入式工程师
2013-06-01  8:41           ` 嵌入式工程师
2013-06-01 10:16             ` Gilles Chanteperdrix
2013-06-03  1:36               ` 嵌入式工程师 [this message]
2013-06-03  1:47                 ` 嵌入式工程师
2013-06-03  6:03                 ` Gilles Chanteperdrix
2013-06-03  6:31                   ` 嵌入式工程师
2013-06-03  8:24                   ` 嵌入式工程师
2013-06-03 11:46                     ` Gilles Chanteperdrix
2013-06-05 14:34                       ` 嵌入式工程师
2013-06-05 18:31                         ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2013-05-31  1:50 嵌入式工程师
2013-06-01  8:43 嵌入式工程师

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37d33293.2abd.13f07ada45c.Coremail.ericvic@163.com \
    --to=ericvic@163.com \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.