Changeset 379a4761 in rtems


Ignore:
Timestamp:
Sep 15, 2008, 7:25:42 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
fe6cce1c
Parents:
5e8726d0
Message:

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

  • Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
Location:
c/src/lib/libbsp/powerpc/gen5200
Files:
1 added
3 edited

Legend:

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

    r5e8726d0 r379a4761  
     12008-09-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() in
     4        its own file and rely on BSP Framework to perform more
     5        initialization.
     6        * startup/bspgetworkarea.c: New file.
     7
    182008-09-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • c/src/lib/libbsp/powerpc/gen5200/Makefile.am

    r5e8726d0 r379a4761  
    9999        ../../shared/bsppost.c \
    100100        ../../shared/bsppretaskinghook.c \
     101        ../../shared/bsppredriverhook.c \
    101102        ../../shared/gnatinstallhandler.c \
    102103        ../../shared/sbrk.c \
     
    105106        ../shared/uboot_getenv.c \
    106107        startup/bspclean.c \
     108        startup/bspgetworkarea.c \
    107109        startup/bspstart.c \
    108110        startup/cpuinit.c  \
  • c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c

    r5e8726d0 r379a4761  
    123123
    124124void BSP_panic(char *s)
    125   {
     125{
    126126  printk("%s PANIC %s\n",_RTEMS_version, s);
    127127  __asm__ __volatile ("sc");
    128   }
     128}
    129129
    130130void _BSP_Fatal_error(unsigned int v)
    131   {
     131{
    132132  printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
    133133  __asm__ __volatile ("sc");
    134   }
    135 
    136 void bsp_get_work_area(
    137   void   **work_area_start,
    138   size_t  *work_area_size,
    139   void   **heap_start,
    140   size_t  *heap_size)
    141 {
    142 #ifdef HAS_UBOOT
    143   char *ram_end = (char *) uboot_bdinfo_ptr->bi_memstart +
    144                                  uboot_bdinfo_ptr->bi_memsize;
    145 #else /* HAS_UBOOT */
    146   char *ram_end = bsp_ram_end;
    147 #endif /* HAS_UBOOT */
    148 
    149   *work_area_start = bsp_work_area_start;
    150   *work_area_size = ram_end - bsp_work_area_start;
    151   *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    152   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    153 }
    154 
    155 void bsp_predriver_hook(void)
    156   {
    157 #if 0
    158   init_RTC();
    159 
    160   init_PCI();
    161   initialize_universe();
    162   initialize_PCI_bridge ();
    163 
    164 #if (HAS_PMC_PSC8)
    165   initialize_PMC();
    166 #endif
    167 
    168  /*
    169   * Initialize Bsp General purpose vector table.
    170   */
    171  initialize_external_exception_vector();
    172 
    173 #if (0)
    174   /*
    175    * XXX - Modify this to write a 48000000 (loop to self) command
    176    *       to each interrupt location.  This is better for debug.
    177    */
    178  bsp_spurious_initialize();
    179 #endif
    180 
    181 #endif
    182134}
    183135
Note: See TracChangeset for help on using the changeset viewer.