summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadcreateidle.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-15 19:21:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-15 19:21:01 +0000
commitaac75d3b9bb7bf1b7ec10cfc3c20f58f1ab2240b (patch)
treeabdcbbf04573f71bc24897dfb3ee5d14a8be9a1e /cpukit/score/src/threadcreateidle.c
parent2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-aac75d3b9bb7bf1b7ec10cfc3c20f58f1ab2240b.tar.bz2
2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/itronapi.h, libmisc/capture/capture.c, libmisc/monitor/mon-config.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-mpci.c, posix/include/rtems/posix/config.h, posix/include/rtems/posix/posixapi.h, rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/rtemsapi.h, rtems/src/taskinitusers.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/itronapi.c, sapi/src/posixapi.c, sapi/src/rtemsapi.c, score/src/isr.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadstackallocate.c, score/src/threadstackfree.c, score/src/wkspace.c: Eliminate pointers to API configuration tables in the main configuration table. Reference the main configuration table and the API configuration tables directly using the confdefs.h version rather than obtaining a pointer to it. This eliminated some variables, a potential fatal error, some unnecessary default configuration structures. Overall, about a 4.5% reduction in the code size for minimum and hello on the SPARC.
Diffstat (limited to 'cpukit/score/src/threadcreateidle.c')
-rw-r--r--cpukit/score/src/threadcreateidle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index 2643d7248c..9ee8810b12 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -60,7 +60,7 @@ void _Thread_Create_idle( void )
&_Thread_Internal_information,
_Thread_Idle,
NULL, /* allocate the stack */
- _Stack_Ensure_minimum( _Configuration_Table->idle_task_stack_size ),
+ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ),
CPU_IDLE_TASK_IS_FP,
PRIORITY_MAXIMUM,
TRUE, /* preemptable */
@@ -82,7 +82,7 @@ void _Thread_Create_idle( void )
_Thread_Start(
_Thread_Idle,
THREAD_START_NUMERIC,
- _Configuration_Table->idle_task,
+ Configuration.idle_task,
NULL,
0
);