summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-11 17:23:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-11 17:23:06 +0000
commite58f80cb40cef8edab9e2e5cb0669809d63f0950 (patch)
tree58486ff4666029df07b1de9409412f2f360fded9 /cpukit/sapi/include/confdefs.h
parent2011-04-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e58f80cb40cef8edab9e2e5cb0669809d63f0950.tar.bz2
2011-04-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h, score/cpu/i386/cpu.c: Fix typos so you really can define a user scheduler.
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r--cpukit/sapi/include/confdefs.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index e7e2a8505d..43fbf45a69 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -601,7 +601,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
*/
#if defined(CONFIGURE_SCHEDULER_PRIORITY)
#include <rtems/score/schedulerpriority.h>
- #define SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_ENTRY_POINTS
+ #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_ENTRY_POINTS
/**
* This defines the memory used by the priority scheduler.
@@ -619,7 +619,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
*/
#if defined(CONFIGURE_SCHEDULER_SIMPLE)
#include <rtems/score/schedulersimple.h>
- #define SCHEDULER_ENTRY_POINTS SCHEDULER_SIMPLE_ENTRY_POINTS
+ #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_SIMPLE_ENTRY_POINTS
/**
* define the memory used by the simple scheduler
@@ -630,14 +630,19 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
#define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER (0)
#endif
+#if defined(CONFIGURE_SCHEDULER_USER)
+ #define CONFIGURE_SCHEDULER_ENTRY_POINTS \
+ CONFIGURE_SCHEDULER_USER_ENTRY_POINTS
+#endif
+
/*
* Set up the scheduler entry points table. The scheduling code uses
* this code to know which scheduler is configured by the user.
*/
#ifdef CONFIGURE_INIT
Scheduler_Control _Scheduler = {
- NULL, /* Scheduler Specific Data Pointer */
- SCHEDULER_ENTRY_POINTS /* Scheduler Operations */
+ NULL, /* Scheduler Specific Data Pointer */
+ CONFIGURE_SCHEDULER_ENTRY_POINTS /* Scheduler Operations */
};
#endif