From aac75d3b9bb7bf1b7ec10cfc3c20f58f1ab2240b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 15 Dec 2008 19:21:01 +0000 Subject: 2008-12-15 Joel Sherrill * 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. --- cpukit/itron/include/rtems/itron/itronapi.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'cpukit/itron') diff --git a/cpukit/itron/include/rtems/itron/itronapi.h b/cpukit/itron/include/rtems/itron/itronapi.h index b56b963610..e9b1266eef 100644 --- a/cpukit/itron/include/rtems/itron/itronapi.h +++ b/cpukit/itron/include/rtems/itron/itronapi.h @@ -3,9 +3,7 @@ */ /* - * ITRON API Support - * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -20,15 +18,20 @@ #include -/* - * _ITRON_API_Initialize +/** + * @brief Initialize ITRON API * - * Initialize the ITRON API. + * This method is used to initialize the ITRON API. */ +void _ITRON_API_Initialize(void); -void _ITRON_API_Initialize( - rtems_configuration_table *configuration_table -); +/** + * @brief ITRON API Cofniguration Table + * + * This is the ITRON API Configuration Table expected to be generated + * by confdefs.h. + */ +extern itron_api_configuration_table Configuration_ITRON_API; #endif /* end of include file */ -- cgit v1.2.3