On 02/05/2013 02:17 PM, RAGHAVENDRA GANIGA wrote:
> Sir i have compiled the linux 3.5.7 with xenomai 2.6.2.1 using
> toolchain arm-none-linux-gnueabi from codesourcery and we were
> testing the code which i have attached with the mail the non real
> time tasks are working properly but the real time tasks are
> giving some unexpected results like the code which i have attached
> , in that when i execute the code the task gets registered in
> /proc/xenomai/sched but there is no output from the tasks routine
> like the first thing it should print is "in real time task" but
> it is not printing, i have also attached the dmesg and the latency
> test result from user space and kernel space.
> Thanking you.
Please try the following patch, without it the printk virq gets
replaced with the "service vnmi":
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 3b86167..f77ef11 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -440,7 +440,7 @@ void __ipipe_ipis_alloc(void)
return;
/* __ipipe_first_ipi is 0 here */
- ipi_nr = IPI_IPIPE_FIRST + IPIPE_LAST_IPI;
+ ipi_nr = IPI_IPIPE_FIRST + IPIPE_LAST_IPI + 1;
for (virq = IPIPE_IPI_BASE; virq < IPIPE_IPI_BASE + ipi_nr; virq++) {
_virq = ipipe_alloc_virq();
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai