All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] T_FPU without effect
@ 2006-04-14  8:31 Jan Kiszka
  2006-04-14 13:35 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2006-04-14  8:31 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

Hi,

after receiving SIGXCPU for unexpected context switches in a larger
application, I found out that the T_FPU bit does not seem to be
recognised on x86 during native task creation. Here is a simple test
case, watch out for /proc/xenomai/faults after program start and 5 s later:

#include <native/task.h>
#include <sys/mman.h>

float x;

void task_func(void *p)
{
    rt_task_sleep(5000000000LL);
    x = 3.14 + (int)p;
}

main()
{
    RT_TASK task;

    mlockall(MCL_CURRENT|MCL_FUTURE);

    rt_task_spawn(&task, NULL, 0, 40, T_FPU | T_JOINABLE, task_func, 0);
    rt_task_join(&task);

    return 0;
}


Any immediate ideas?

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-15 15:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-14  8:31 [Xenomai-core] T_FPU without effect Jan Kiszka
2006-04-14 13:35 ` Gilles Chanteperdrix
2006-04-15  9:49   ` Jan Kiszka
2006-04-15 15:02     ` Gilles Chanteperdrix

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.