Changeset bb9c80df in rtems


Ignore:
Timestamp:
Dec 15, 2008, 7:21:10 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
19d2b5a
Parents:
aac75d3b
Message:

2008-12-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, spfatal06/testcase.h, spfatal07/testcase.h, spfatal08/testcase.h, spfatal09/testcase.h, spsize/size.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.
  • spfatal10/.cvsignore, spfatal10/Makefile.am, spfatal10/spfatal10.scn, spfatal10/testcase.h: Removed.
Location:
testsuites/sptests
Files:
4 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    raac75d3b rbb9c80df  
     12008-12-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, spfatal06/testcase.h,
     4        spfatal07/testcase.h, spfatal08/testcase.h, spfatal09/testcase.h,
     5        spsize/size.c: Eliminate pointers to API configuration tables in the
     6        main configuration table. Reference the main configuration table and
     7        the API configuration tables directly using the confdefs.h version
     8        rather than obtaining a pointer to it. This eliminated some
     9        variables, a potential fatal error, some unnecessary default
     10        configuration structures. Overall, about a 4.5% reduction in the code
     11        size for minimum and hello on the SPARC.
     12        * spfatal10/.cvsignore, spfatal10/Makefile.am, spfatal10/spfatal10.scn,
     13        spfatal10/testcase.h: Removed.
     14
    1152008-12-14      Joel Sherrill <joel.sherrill@oarcorp.com>
    216
  • testsuites/sptests/Makefile.am

    raac75d3b rbb9c80df  
    1010    sp30 sp31 sp32 sp33 sp34 sp35 sp37 sp38 sp39 sp40 sp41 sp42 sp43 sp44 \
    1111    sp45 sp46 spsize spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 \
    12     spfatal06 spfatal07 spfatal08 spfatal09 spfatal10
     12    spfatal06 spfatal07 spfatal08 spfatal09
    1313
    1414DIST_SUBDIRS = $(SUBDIRS) spfatal spfatal_support
  • testsuites/sptests/configure.ac

    raac75d3b rbb9c80df  
    8383spfatal08/Makefile
    8484spfatal09/Makefile
    85 spfatal10/Makefile
    8685])
    8786AC_OUTPUT
  • testsuites/sptests/spfatal06/testcase.h

    raac75d3b rbb9c80df  
    11/*
    22 * Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2008.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3037#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_BAD_STACK_HOOK
    3138
    32 void *New_stack_allocate_hook( uint32_t unused)
     39void *New_stack_allocate_hook(uint32_t unused)
    3340{
    3441}
     
    3643void force_error()
    3744{
    38   rtems_configuration_table New_Configuration;
     45  if (Configuration.stack_free_hook != NULL)
     46    Configuration.stack_allocate_hook = NULL;
     47  else
     48    Configuration.stack_allocate_hook = &New_stack_allocate_hook;
    3949
    40   New_Configuration = *_Configuration_Table;
    41 
    42   if (_Configuration_Table->stack_free_hook != NULL)
    43     New_Configuration.stack_allocate_hook = NULL;
    44   else
    45      New_Configuration.stack_allocate_hook = &New_stack_allocate_hook;
    46 
    47   rtems_initialize_data_structures( &New_Configuration );
     50  rtems_initialize_data_structures();
    4851  /* we will not run this far */
    4952}
  • testsuites/sptests/spfatal07/testcase.h

    raac75d3b rbb9c80df  
    11/*
    22 * Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2008.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3239void force_error()
    3340{
    34   rtems_configuration_table New_Configuration;
    35   New_Configuration = *_Configuration_Table;
    36 
    37   New_Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1);
    38   rtems_initialize_data_structures( &New_Configuration );
     41  Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1);
     42  rtems_initialize_data_structures();
    3943   
    4044  /* we will not run this far */
  • testsuites/sptests/spfatal08/testcase.h

    raac75d3b rbb9c80df  
    11/*
    22 * Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2008.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3441void force_error()
    3542{
    36   rtems_configuration_table New_Configuration;
    37   New_Configuration = *_Configuration_Table;
    38  
    39   New_Configuration.work_space_start = Workspace;
    40   New_Configuration.work_space_size  = 256;
     43  Configuration.work_space_start = Workspace;
     44  Configuration.work_space_size  = 256;
    4145
    42   rtems_initialize_data_structures( &New_Configuration );
     46  rtems_initialize_data_structures();;
    4347  /* we will not run this far */
    4448}
  • testsuites/sptests/spfatal09/testcase.h

    raac75d3b rbb9c80df  
    11/*
    22 * Classic API Init task create failure
     3 *
     4 *  COPYRIGHT (c) 1989-2008.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    3239void force_error()
    3340{
    34   rtems_configuration_table New_Configuration;
    35   New_Configuration = *_Configuration_Table;
    36  
    37   New_Configuration.work_space_start = NULL;
     41  Configuration.work_space_start = NULL;
    3842
    39   rtems_initialize_data_structures( &New_Configuration );
     43  rtems_initialize_data_structures();
    4044  /* we will not run this far */
    4145}
  • testsuites/sptests/spsize/size.c

    raac75d3b rbb9c80df  
    44 *  requirements of the current version of RTEMS.
    55 *
    6  *  COPYRIGHT (c) 1989-2007.
     6 *  COPYRIGHT (c) 1989-2008.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    223223/*clock.h*/     0                                         +
    224224
    225 /*config.h*/    (sizeof _Configuration_Table)             +
     225/*config.h*/
    226226        #if defined(RTEMS_MULTIPROCESSING)
    227227                (sizeof _Configuration_MP_table)          +
Note: See TracChangeset for help on using the changeset viewer.