Changeset 4130d8e2 in rtems for c/src/lib/libbsp/h8300


Ignore:
Timestamp:
Dec 11, 2007, 3:50:25 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
9cf283a
Parents:
f1c53e8e
Message:

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Location:
c/src/lib/libbsp/h8300/h8sim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/h8300/h8sim/include/bsp.h

    rf1c53e8e r4130d8e2  
    4949/* miscellaneous stuff assumed to exist */
    5050
    51 extern rtems_configuration_table BSP_Configuration;
    52 
    5351/*
    5452 *  Device Driver Table Entries
  • c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2020#include <rtems/libio.h>
    2121#include <rtems/libcsupport.h>
    22 
    23 /*
    24  *  The original table from the application and our copy of it with
    25  *  some changes.
    26  */
    27 
    28 extern rtems_configuration_table Configuration;
    29 
    30 rtems_configuration_table  BSP_Configuration;
    31 
    32 char *rtems_progname;
    3322
    3423/*
     
    6049
    6150    heapStart =  (void *)
    62        ((unsigned long)&WorkspaceBase + BSP_Configuration.work_space_size);
     51       ((unsigned long)&WorkspaceBase + rtems_configuration_get_work_space_size());
    6352    if ( (unsigned long) heapStart > (256 * 1024) )
    6453       rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
     
    8372
    8473/*
    85   if ( BSP_Configuration.work_space_size >(512*1024) )
     74  if ( rtems_configuration_get_work_space_size() >(512*1024) )
    8675   _sys_exit( 1 );
    8776*/
    8877
    89   BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
     78  Configuration.work_space_start = (void *) &WorkspaceBase;
    9079}
    9180
Note: See TracChangeset for help on using the changeset viewer.