Changeset 7321ff0 in rtems


Ignore:
Timestamp:
Dec 4, 2007, 10:22:10 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
d34d8692
Parents:
cafa2c5
Message:

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

  • shared/startup/bspstart.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms.
Location:
c/src/lib/libbsp/powerpc
Files:
2 edited

Legend:

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

    rcafa2c5 r7321ff0  
     12007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * shared/startup/bspstart.c: Move interrupt_stack_size field from CPU
     4        Table to Configuration Table. Eliminate CPU Table from all ports.
     5        Delete references to CPU Table in all forms.
     6
    172007-12-03      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    rcafa2c5 r7321ff0  
    9292unsigned int BSP_time_base_divisor;
    9393/*
    94  * system init stack and soft ir stack size
     94 * system init stack
    9595 */
    9696#define INIT_STACK_SIZE 0x1000
    97 #define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY
    9897
    9998void BSP_panic(char *s)
     
    115114
    116115extern rtems_configuration_table Configuration;
    117 
    118116rtems_configuration_table  BSP_Configuration;
    119 
    120 rtems_cpu_table Cpu_table;
    121 
    122117char *rtems_progname;
    123118
     
    247242   * some settings below...
    248243   */
    249   BSP_heap_start = ((uint32_t) __rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE;
     244  BSP_heap_start = ((uint32_t) __rtems_end) +
     245    INIT_STACK_SIZE + rtems_configuration_get_interrupt_stack_size();
    250246
    251247  /* reserve space for the marker/tag frame */
     
    380376
    381377  /*
    382    * Set up our hooks
    383    * Make sure libc_init is done before drivers initialized so that
    384    * they can use atexit()
    385    */
    386 
    387   Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    388 
     378   *  initialize the device driver parameters
     379   */
    389380  bsp_clicks_per_usec    = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    390381
     
    397388    (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
    398389
    399   if ( work_space_start <=
    400        ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE) {
     390  if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE +
     391        rtems_configuration_get_interrupt_stack_size()) {
    401392    printk( "bspstart: Not enough RAM!!!\n" );
    402393    bsp_cleanup();
Note: See TracChangeset for help on using the changeset viewer.