Ignore:
Timestamp:
Sep 14, 2008, 8:04:36 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
f560d0a
Parents:
cdeed304
Message:

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

  • Makefile.am, configure.ac: Split out bsp_cleanup() and bsp_get_work_area() into their own files.
  • startup/bspclean.c, startup/bspgetworkarea.c, startup/bspstart.c: New files.
  • startup/start.c: Removed.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/nds/startup/bspstart.c

    rcdeed304 r12d853d  
    2222
    2323/*
    24  *  These are from the linker script.
    25  */
    26 extern uint8_t _end;
    27 extern uint8_t __ewram_end;
    28 
    29 /*
    30  *  This method returns the base address and size of the area which
    31  *  is to be allocated between the RTEMS Workspace and the C Program
    32  *  Heap.
    33  */
    34 void bsp_get_work_area(
    35   void   **work_area_start,
    36   size_t  *work_area_size,
    37   void   **heap_start,
    38   size_t  *heap_size
    39 )
    40 {
    41   *work_area_start       = &_end;
    42   *work_area_size       = (void *)&__ewram_end - (void *)&_end;
    43   *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    44   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    45 }
    46 
    47 /*
    4824 * start the platform.
    4925 */
    5026
    51 void
    52 bsp_start (void)
     27void bsp_start (void)
    5328{
    5429  /* initialize irq management */
     
    9065
    9166/*
    92  * reset the platform using bios call.
    93  */
    94 
    95 void
    96 bsp_reset (void)
    97 {
    98   swiSoftReset ();
    99 }
    100 
    101 /*
    102  * clean up platform before reset.
    103  */
    104 
    105 void
    106 bsp_cleanup (void)
    107 {
    108   printk ("[!] executive ended, rebooting\n");
    109 
    110   bsp_reset ();
    111 }
    112 
    113 /*
    11467 * A few symbols needed by libnds but not used.
    11568 */
Note: See TracChangeset for help on using the changeset viewer.