Commit 7d61055a authored by jdelange's avatar jdelange
Browse files

* po-hi-c/src/po_hi_task.c

   - RTEMS and Xenomai task creation matches new function
     prototypes

 * po-hi-c/src/po_hi_gprof_rtems_leon.c
   - Fix compilation warning



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@3310 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent e11eb494
......@@ -650,7 +650,6 @@ int initialize_serial()
void write_serial(uint8_t vector[] , unsigned int dim)
{
int i;
write(serialFD , vector , dim);
/*
for (i = 0 ; i < dim ; i++)
......
......@@ -369,7 +369,7 @@ int __po_hi_create_generic_task (const __po_hi_task_id id,
#elif defined (XENO_NATIVE)
RT_TASK t;
(void) arg;
t = __po_hi_xenomai_create_thread (priority, stack_size, start_routine);
t = __po_hi_xenomai_create_thread (priority, stack_size, start_routine, arg);
if (rt_task_start (&(t), (void*)start_routine, NULL))
{
__DEBUGMSG ("ERROR when starting the task\n");
......@@ -377,7 +377,7 @@ int __po_hi_create_generic_task (const __po_hi_task_id id,
return (__PO_HI_SUCCESS);
#elif defined (RTEMS_PURE)
(void) arg;
__po_hi_rtems_create_thread (priority, stack_size, start_routine);
__po_hi_rtems_create_thread (priority, stack_size, start_routine, arg);
return (__PO_HI_SUCCESS);
#else
return (__PO_HI_UNAVAILABLE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment