Changeset 71d0488b in rtems


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

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

  • bootcard.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.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r19d2b5a r71d0488b  
     12008-12-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * bootcard.c: Eliminate pointers to API configuration tables in the
     4        main configuration table. Reference the main configuration table and
     5        the API configuration tables directly using the confdefs.h version
     6        rather than obtaining a pointer to it. This eliminated some
     7        variables, a potential fatal error, some unnecessary default
     8        configuration structures. Overall, about a 4.5% reduction in the code
     9        size for minimum and hello on the SPARC.
     10
    1112008-12-11      Ralf Corsepius <ralf.corsepius@rtems.org>
    212
  • c/src/lib/libbsp/shared/bootcard.c

    r19d2b5a r71d0488b  
    6565static rtems_status_code bootcard_bsp_libc_helper(
    6666  void    *work_area_start,
    67   ssize_t work_area_size,
     67  intptr_t work_area_size,
    6868  void    *heap_start,
    69   ssize_t heap_size
     69  intptr_t heap_size
    7070)
    7171{
    72   ssize_t heap_size_default = 0;
     72  intptr_t heap_size_default = 0;
    7373
    7474  if ( !rtems_unified_work_area &&
     
    8787     * work area up to the work space start as heap area.
    8888     */
    89     heap_size_default = (ssize_t) ((char *) Configuration.work_space_start
     89    heap_size_default = (intptr_t) ((char *) Configuration.work_space_start
    9090      - (char *) work_area_start);
    9191
    9292    /* Keep it as a multiple of 16 bytes */
    93     heap_size_default &= ~((ssize_t) 0xf);
     93    heap_size_default &= ~((intptr_t) 0xf);
    9494
    9595    /* Use default heap size if requested */
     
    128128  rtems_status_code       sc = RTEMS_SUCCESSFUL;
    129129  void                   *work_area_start = NULL;
    130   ssize_t                 work_area_size = 0;
     130  intptr_t                work_area_size = 0;
    131131  void                   *heap_start = NULL;
    132   ssize_t                 heap_size = 0;
     132  intptr_t                heap_size = 0;
    133133
    134134  /*
     
    194194   *  Initialize RTEMS data structures
    195195   */
    196   rtems_initialize_data_structures( &Configuration );
     196  rtems_initialize_data_structures();
    197197
    198198  /*
Note: See TracChangeset for help on using the changeset viewer.