Changeset 4e9893b1 in rtems


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

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

  • bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Location:
c/src/lib/libbsp/shared
Files:
3 edited

Legend:

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

    r9cf283a r4e9893b1  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table.
     4        Use the RTEMS provided accessor macros to obtain configuration
     5        fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/shared/bootcard.c

    r9cf283a r4e9893b1  
    3737extern void bsp_cleanup( void );
    3838
    39 extern rtems_configuration_table  Configuration;
    40 extern rtems_configuration_table  BSP_Configuration;
    41 rtems_api_configuration_table BSP_RTEMS_Configuration;
    42 
    43 #ifdef RTEMS_POSIX_API
    44 posix_api_configuration_table BSP_POSIX_Configuration;
    45 #endif
    46 
    47 rtems_interrupt_level bsp_isr_level;
    48 
    4939/*
    5040 *  Since there is a forward reference
     
    5949  char **argv_p = &argv_pointer;
    6050  char **envp_p = &envp_pointer;
     51  rtems_interrupt_level bsp_isr_level;
     52
     53  /*
     54   *  Make sure interrupts are disabled.
     55   */
     56
     57  rtems_interrupt_disable( bsp_isr_level );
    6158
    6259  /*
     
    7471
    7572  /*
    76    *  Copy the configuration table so we and the BSP wants to change it.
    77    */
    78 
    79   BSP_Configuration       = Configuration;
    80 
    81   BSP_RTEMS_Configuration = *Configuration.RTEMS_api_configuration;
    82   BSP_Configuration.RTEMS_api_configuration = &BSP_RTEMS_Configuration;
    83 
    84 #ifdef RTEMS_POSIX_API
    85   BSP_POSIX_Configuration = *Configuration.POSIX_api_configuration;
    86   BSP_Configuration.POSIX_api_configuration = &BSP_POSIX_Configuration;
    87 #endif
    88 
    89   /*
    9073   * Invoke Board Support Package initialization routine written in C.
    9174   */
     
    9780   */
    9881
    99   bsp_isr_level = rtems_initialize_executive_early( &BSP_Configuration );
     82  rtems_initialize_executive_early( &Configuration );
    10083
    10184  /*
  • c/src/lib/libbsp/shared/bsplibc.c

    r9cf283a r4e9893b1  
    99#include <rtems/libio.h>
    1010#include <rtems/libcsupport.h>
    11 
    12 extern rtems_configuration_table  BSP_Configuration;
    1311
    1412void bsp_libc_init(
     
    3230     */
    3331
    34     if ( BSP_Configuration.ticks_per_timeslice > 0 )
     32    if ( rtems_configuration_get_ticks_per_timeslice() > 0 )
    3533        libc_init(1);                /* reentrant if possible */
    3634    else
Note: See TracChangeset for help on using the changeset viewer.