From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F842395.4060108@domain.hid> Date: Tue, 10 Apr 2012 14:12:05 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4F50A422.50208@domain.hid> <4F55C306.8020307@domain.hid> <4F55D765.7040705@domain.hid> <4F55E390.8090706@domain.hid> <4F55FE81.6000904@domain.hid> <4F560A6C.2080306@domain.hid> <4F560B76.5080606@domain.hid> <4F5629D2.50304@domain.hid> <4F562B53.7070400@domain.hid> <4F562EC2.6040604@domain.hid> <4F56387B.40702@domain.hid> <4F575BA3.7060404@domain.hid> <4F576622.1030509@domain.hid> <4F57A567.7030008@domain.hid> <4F7C127D.2010400@domain.hid> <4F7C1484.5090406@domain.hid> <4F7C183F.5040009@domain.hid> <4F7F0D4E.8080906@domain.hid> <4F7F0E8A.70702@domain.hid> <4F7F20F0.9070007@domain.hid> <4F80BD10.2060200@domain.hid> <4F83F2C3.50704@domain.hid> <4F83F321.2030300@domain.hid> <4F83F645.7040402@domain.hid> <4F83F828.4000508@domain.hid> <4F83F929.5000300@domain.hid> <4F83FBAB.7040301@domain.hid> <4F83FF49.90608@domain.hid> <4F840DD8.2030407@domain.hid> <4F8418C4.400@domain.hid> <4F8421F7.50807@domain.hid> <4F84222D.7080808@domain.hid> <4F842369.2020504@domain.hid> In-Reply-To: <4F842369.2020504@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] preemptive doesn't work List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roberto Bielli Cc: xenomai@xenomai.org On 04/10/2012 02:11 PM, Roberto Bielli wrote: > Il 10/04/2012 14:06, Gilles Chanteperdrix ha scritto: >> On 04/10/2012 02:05 PM, Roberto Bielli wrote: >>> Hi Gilles, >>> >>> i added this in configure of xenomai so i pass --enable-arm-mach=imx25 >>> >>> imx25) arch=5 >>> tsc_type=__XN_TSC_TYPE_FREERUNNING;; >>> >>> Furthermore in plat-mxc/include/mach/mxc.h explain which are cpumx2 and >>> imx25 is NOT mx2 >>> #define cpu_is_mx2() (cpu_is_mx21() || cpu_is_mx27()) >>> >>> i don't understand a things. >>> Does the tsc necessary to calculate correct timer period, or can i >>> disable tsc and xenomai continue work correctly ? >> Xenomai needs the tsc in kernel-space. Obviously, if you do not use the >> tsc in user-space, you will not see that it is wrong. Correct physical >> address is only needed for user-space. >> >>> However i cannot use tsc in my simple application. I resend the simple C >>> application that doesn't work. >> What do you mean you can not use the tsc in your application? What >> happens if you use it? >> > If i use tsc i have no error and i read a correct value. > So, it works. Good news. To know if it works as expected, you can try the "latency" test. Something I have not asked, could you type: cat /proc/xenomai/timer on the mx25 board? -- Gilles.