Fileio example like a posix threads instead of task!

Matteo matteo.posterli at studenti.unipr.it
Tue Mar 21 08:59:44 UTC 2006


Hi, 
I can compile and run the fileio example.

I have to work with the posix threads so I change a bit the system.h and init.c
like following ;

instead of "#define CONFIGURE_RTEMS_INIT_TASKS_TABLE" I put "#define
CONFIGURE_POSIX_INIT_THREAD_TABLE"

instead of "#define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)"
I put "#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE (3 *
RTEMS_MINIMUM_STACK_SIZE)"

and instead of "rtems_task Init (rtems_task_argument ignored){..}"(in the file
init.c) I put "void *POSIX_Init(){..}"

I compile it, and when I launch it I have this error ;

assert failed:../../../../../../rtems-4.7/c/src/../../cpukit/posix/src/pthread.c
: 300 : !status

What appened?

I just want to use the fileio example like a posix threads not like a task!

Have you some idea ?, can help me ?

Thanks in advance

MAtteo




More information about the users mailing list