Changeset bcb9f8c3 in rtems


Ignore:
Timestamp:
Sep 18, 2008, 5:54:14 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
76ba5f2
Parents:
5ce16e9
Message:

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

  • Makefile.am, configure.ac, include/bsp.h, startup/bspstart.c: Use PowerPC level shared bsp_get_work_area() implementation.
Location:
c/src/lib/libbsp/powerpc/mvme5500
Files:
5 edited

Legend:

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

    r5ce16e9 rbcb9f8c3  
     12008-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, include/bsp.h, startup/bspstart.c: Use
     4        PowerPC level shared bsp_get_work_area() implementation.
     5
    162008-09-15      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/powerpc/mvme5500/Makefile.am

    r5ce16e9 rbcb9f8c3  
    3333    ../../powerpc/shared/startup/pgtbl_setup.c startup/pgtbl_activate.c \
    3434    ../../powerpc/shared/startup/pretaskinghook.c \
     35    ../../powerpc/shared/startup/bspgetworkarea.c \
    3536    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    3637    ../../shared/bsppredriverhook.c startup/bspclean.c \
  • c/src/lib/libbsp/powerpc/mvme5500/configure.ac

    r5ce16e9 rbcb9f8c3  
    3232 The BSP actually contains the call that enables this.])
    3333
     34RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     35
    3436# Explicitly list all Makefiles here
    3537AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h

    r5ce16e9 rbcb9f8c3  
    7979
    8080/*
     81 * system init stack
     82 */
     83#define BSP_INIT_STACK_SIZE 0x1000
     84
     85/*
    8186 * Vital Board data Start using DATA RESIDUAL
    8287 */
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    r5ce16e9 rbcb9f8c3  
    124124static char cmdline_buf[CMDLINE_BUF_SIZE];
    125125char *BSP_commandline_string = cmdline_buf;
    126 
    127 /*
    128  * system init stack
    129  */
    130 #define INIT_STACK_SIZE 0x1000
    131126
    132127void BSP_panic(char *s)
     
    244239  uint32_t intrStackStart;
    245240  uint32_t intrStackSize;
    246   unsigned char *work_space_start;
    247241  ppc_cpu_id_t myCpu;
    248242  ppc_cpu_revision_t myCpuRevision;
     
    284278   */
    285279  stack = ((unsigned char*) __rtems_end) +
    286           INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
     280          BSP_INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
    287281
    288282  /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
     
    297291   * Initialize the interrupt related settings.
    298292   */
    299   intrStackStart = (uint32_t) __rtems_end + INIT_STACK_SIZE;
     293  intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE;
    300294  intrStackSize = rtems_configuration_get_interrupt_stack_size();
    301295  BSP_heap_start = intrStackStart + intrStackSize;
     
    369363
    370364  bsp_clicks_per_usec    = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    371 
    372   printk(
    373     "rtems_configuration_get_work_space_size() = %x\n",
    374      rtems_configuration_get_work_space_size()
    375   );
    376 
    377   work_space_start =
    378     (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size();
    379 
    380   if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE +
    381         rtems_configuration_get_interrupt_stack_size()) {
    382     printk( "bspstart: Not enough RAM!!!\n" );
    383     bsp_cleanup();
    384   }
    385 
    386   Configuration.work_space_start = work_space_start;
    387365
    388366  /*
Note: See TracChangeset for help on using the changeset viewer.