Commit 4698fe29 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Automatically select CONFIGURE_SMP_MAXIMUM_PROCESSORS

parent 8e5cfdfc
......@@ -37,7 +37,7 @@ rtems_task Init(rtems_task_argument argument)
#else
// LEON2 system - emulate SMP via Linux/Windows-like
// handling of tasks with same priority (i.e. pre-emption)
RTEMS_DEFAULT_MODES | RTEMS_TIMESLICE
RTEMS_DEFAULT_MODES | RTEMS_TIMESLICE,
#endif
(i%2) == 0 ? RTEMS_FLOATING_POINT : RTEMS_DEFAULT_ATTRIBUTES,
&Task_id[i]);
......
......@@ -19,7 +19,11 @@ void memcheck(void);
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_SMP_APPLICATION
#ifdef BSP_leon2
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 1
#else
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 4
#endif
#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
#ifndef DEFINE_VARS
#define GLOBAL
......
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