Ignore:
Timestamp:
Sep 15, 2008, 10:05:08 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
60e3b00
Parents:
76432f9
Message:

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

  • Makefile.am, configure.ac, include/bsp.h, include/bspopts.h.in, startup/bspstart.c: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    r76432f9 r704e371  
    7171 */
    7272unsigned int BSP_mem_size            = 0;
    73 /*
    74  * Where the heap starts; is used by bsp_pretasking_hook;
    75  */
    76 unsigned int BSP_heap_start          = 0;
    7773/*
    7874 * PCI Bus Frequency
     
    111107}
    112108
    113 /*
    114  * system init stack and soft ir stack size
    115  */
    116 #define INIT_STACK_SIZE 0x1000
    117 #define INTR_STACK_SIZE rtems_configuration_get_interrupt_stack_size()
    118109
    119110BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
     
    239230uint32_t            intrStackStart;
    240231uint32_t            intrStackSize;
    241 unsigned char       *work_space_start;
    242232char                *chpt;
    243233ppc_cpu_id_t        myCpu;
     
    287277         * Initialize the interrupt related settings.
    288278         */
    289         intrStackStart = (uint32_t) __rtems_end + INIT_STACK_SIZE;
    290         intrStackSize = INTR_STACK_SIZE;
    291         BSP_heap_start = intrStackStart + intrStackSize;
     279        intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE;
     280        intrStackSize = rtems_configuration_get_interrupt_stack_size();
    292281
    293282        /*
     
    434423        _BSP_clear_hostbridge_errors(0 /* enableMCP */, 0/*quiet*/);
    435424
    436         /*
    437          * Set up our hooks
    438          * Make sure libc_init is done before drivers initialized so that
    439          * they can use atexit()
    440          */
    441 
    442         bsp_clicks_per_usec            = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    443 
    444 #ifdef SHOW_MORE_INIT_SETTINGS
    445         printk("Configuration.work_space_size = %x\n",
    446                         Configuration.work_space_size);
    447 #endif
    448 
    449         work_space_start =
    450                 (unsigned char *)BSP_mem_size - Configuration.work_space_size;
    451 
    452         if ( work_space_start <=
    453                         ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE) {
    454                 printk( "bspstart: Not enough RAM!!!\n" );
    455                 bsp_cleanup();
    456         }
    457 
    458         Configuration.work_space_start = work_space_start;
     425        bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    459426
    460427        /*
Note: See TracChangeset for help on using the changeset viewer.