Changeset 4130d8e2 in rtems for c/src/lib/libbsp/powerpc/ep1a


Ignore:
Timestamp:
Dec 11, 2007, 3:50:25 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 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/powerpc/ep1a
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ep1a/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-08      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/ep1a/include/bsp.h

    rf1c53e8e r4130d8e2  
    187187  asm(" eieio ")
    188188
    189 extern rtems_configuration_table  BSP_Configuration;
    190189extern void BSP_panic(char *s);
    191190extern void rtemsReboot(void);
  • c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    125125}
    126126 
    127 /*
    128  *  The original table from the application and our copy of it with
    129  *  some changes.
    130  */
    131 
    132 extern rtems_configuration_table Configuration;
    133 rtems_configuration_table  BSP_Configuration;
    134 char *rtems_progname;
    135 
    136127int BSP_FLASH_Disable_writes(
    137128  uint32_t    area
     
    207198    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    208199
    209   heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
     200  heap_size = (BSP_mem_size - heap_start) - rtems_configuration_get_work_space_size();
    210201
    211202  heap_sbrk_spared=_bsp_sbrk_init(heap_start, &heap_size);
     
    447438
    448439#ifdef SHOW_MORE_INIT_SETTINGS
    449   printk("BSP_Configuration.work_space_size = %x\n", BSP_Configuration.work_space_size);
     440  printk("rtems_configuration_get_work_space_size() = %x\n",
     441     rtems_configuration_get_work_space_size());
    450442#endif 
    451443  work_space_start =
    452     (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
     444    (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size();
    453445
    454446  if ( work_space_start <= ((unsigned char *)__rtems_end) +
     
    458450  }
    459451
    460   BSP_Configuration.work_space_start = work_space_start;
     452  Configuration.work_space_start = work_space_start;
    461453
    462454  /*
Note: See TracChangeset for help on using the changeset viewer.