Changeset afce764d in rtems for c/src/lib/libbsp/powerpc/ep1a


Ignore:
Timestamp:
Dec 4, 2007, 10:21:41 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
56ed8f0f
Parents:
2692a20
Message:

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

  • Makefile.am, include/bsp.h, 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/ep1a
Files:
4 edited

Legend:

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

    r2692a20 rafce764d  
     12007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, include/bsp.h, startup/bspstart.c: Move
     4        interrupt_stack_size field from CPU Table to Configuration Table.
     5        Eliminate CPU Table from all ports. Delete references to CPU Table in
     6        all forms.
     7
    182007-12-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • c/src/lib/libbsp/powerpc/ep1a/Makefile.am

    r2692a20 rafce764d  
    2626noinst_PROGRAMS += startup.rel
    2727startup_rel_SOURCES = startup/bspstart.c ../../shared/bootcard.c \
    28     ../../shared/bsppost.c ../../shared/bsplibc.c \
    29     ../../powerpc/shared/startup/sbrk.c ../../shared/bspclean.c \
    30     ../../shared/gnatinstallhandler.c \
     28    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
     29    ../../shared/bsplibc.c ../../powerpc/shared/startup/sbrk.c \
     30    ../../shared/bspclean.c ../../shared/gnatinstallhandler.c \
    3131    ../../powerpc/shared/startup/pgtbl_setup.c \
    3232    ../../powerpc/shared/startup/pgtbl_activate.c \
  • c/src/lib/libbsp/powerpc/ep1a/include/bsp.h

    r2692a20 rafce764d  
    3030
    3131#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
    32 #define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
    3332
    3433/* fundamental addresses for BSP (CHRPxxx and PREPxxx are from libcpu/io.h) */
  • c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c

    r2692a20 rafce764d  
    109109
    110110/*
    111  * system init stack and soft ir stack size
     111 * system init stack
    112112 */
    113113#define INIT_STACK_SIZE 0x1000
    114 #define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY
    115114
    116115void BSP_panic(char *s)
     
    132131
    133132extern rtems_configuration_table Configuration;
    134 
    135133rtems_configuration_table  BSP_Configuration;
    136 
    137 rtems_cpu_table Cpu_table;
    138 
    139134char *rtems_progname;
    140135
     
    207202  extern uint32_t _bsp_sbrk_init(uint32_t, uint32_t*);
    208203 
    209   heap_start = ((uint32_t) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;
     204  heap_start = ((uint32_t) __rtems_end) +
     205    INIT_STACK_SIZE + rtems_configuration_get_interrupt_stack_size();
    210206  if (heap_start & (CPU_ALIGNMENT-1))
    211207    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
     
    370366  Read_ep1a_config_registers( myCpu );
    371367
    372   Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    373 
    374368  bsp_clicks_per_usec = BSP_processor_frequency/(BSP_time_base_divisor * 1000);
    375369
     
    401395   */
    402396  intrStack = ((uint32_t) __rtems_end) +
    403           INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
     397    INIT_STACK_SIZE + rtems_configuration_get_interrupt_stack_size() -
     398    PPC_MINIMUM_STACK_FRAME_SIZE;
    404399
    405400  /* make sure it's properly aligned */
     
    457452    (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
    458453
    459   if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE) {
     454  if ( work_space_start <= ((unsigned char *)__rtems_end) +
     455        INIT_STACK_SIZE + rtems_configuration_get_interrupt_stack_size()) {
    460456    printk( "bspstart: Not enough RAM!!!\n" );
    461457    bsp_cleanup();
Note: See TracChangeset for help on using the changeset viewer.