Commit 9c3b4c58 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Spawn FPU task first

parent 2956f18a
Pipeline #77 skipped
...@@ -27,7 +27,7 @@ rtems_task Init(rtems_task_argument argument) ...@@ -27,7 +27,7 @@ rtems_task Init(rtems_task_argument argument)
RTEMS_MINIMUM_STACK_SIZE, RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES, // use RTEMS_DEFAULT_MODES | RTEMS_TIMESLICE for Linux/Windows like RTEMS_DEFAULT_MODES, // use RTEMS_DEFAULT_MODES | RTEMS_TIMESLICE for Linux/Windows like
// handling of tasks with same priority (i.e. pre-emption) // handling of tasks with same priority (i.e. pre-emption)
i == 1 ? RTEMS_FLOATING_POINT : RTEMS_DEFAULT_ATTRIBUTES, i == 0 ? RTEMS_FLOATING_POINT : RTEMS_DEFAULT_ATTRIBUTES,
&Task_id[i]); &Task_id[i]);
if (status != RTEMS_SUCCESSFUL) { if (status != RTEMS_SUCCESSFUL) {
printf("Failed to rtems_task_create... status:%0x\n", status); printf("Failed to rtems_task_create... status:%0x\n", status);
...@@ -37,7 +37,7 @@ rtems_task Init(rtems_task_argument argument) ...@@ -37,7 +37,7 @@ rtems_task Init(rtems_task_argument argument)
// Start Task // Start Task
status = rtems_task_start( status = rtems_task_start(
Task_id[i], Task_id[i],
i == 1 ? Task1_EntryPoint : Task2_EntryPoint, i == 0 ? Task1_EntryPoint : Task2_EntryPoint,
i); i);
} }
printf("Parent task sleeps for a second...\n"); printf("Parent task sleeps for a second...\n");
......
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