diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-17 22:46:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-17 22:46:05 +0000 |
commit | 790b50b8da754eba39e2c21d67bb9b14df966080 (patch) | |
tree | 7f8386fb4eb796d8dc60e421e07f9059278012d2 /cpukit/score/src/thread.c | |
parent | 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-790b50b8da754eba39e2c21d67bb9b14df966080.tar.bz2 |
2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/extension.h, sapi/include/rtems/io.h,
sapi/src/exinit.c, sapi/src/extension.c, sapi/src/io.c,
score/include/rtems/score/mpci.h, score/include/rtems/score/object.h,
score/include/rtems/score/thread.h, score/include/rtems/score/tod.h,
score/include/rtems/score/userext.h,
score/include/rtems/score/wkspace.h, score/src/coretod.c,
score/src/mpci.c, score/src/object.c, score/src/thread.c,
score/src/userext.c, score/src/wkspace.c: Convert SAPI manager and
SuperCore Handler initialization routines to directly pull parameters
from configuration table.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/thread.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index ecc47f49b2..a6774388e0 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -17,6 +17,7 @@ #endif #include <rtems/system.h> +#include <rtems/config.h> #include <rtems/score/apiext.h> #include <rtems/score/context.h> #include <rtems/score/interr.h> @@ -37,24 +38,25 @@ * * This routine initializes all thread manager related data structures. * - * Input parameters: - * ticks_per_timeslice - clock ticks per quantum - * maximum_proxies - number of proxies to initialize + * Input parameters: NONE * * Output parameters: NONE */ -void _Thread_Handler_initialization( - uint32_t ticks_per_timeslice, - uint32_t maximum_extensions -#if defined(RTEMS_MULTIPROCESSING) - , - uint32_t maximum_proxies -#endif -) +void _Thread_Handler_initialization(void) { - uint32_t index; + uint32_t index; + uint32_t ticks_per_timeslice; + uint32_t maximum_extensions; + #if defined(RTEMS_MULTIPROCESSING) + uint32_t maximum_proxies; + #endif + ticks_per_timeslice = Configuration.ticks_per_timeslice; + maximum_extensions = Configuration.maximum_extensions; + #if defined(RTEMS_MULTIPROCESSING) + maximum_proxies = _Configuration_MP_table->maximum_proxies; + #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. |