Changeset 12d853d in rtems


Ignore:
Timestamp:
Sep 14, 2008, 8:04:36 PM (11 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.
Location:
c/src/lib/libbsp/arm/nds
Files:
2 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/nds/ChangeLog

    rcdeed304 r12d853d  
     12008-09-14      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac: Split out bsp_cleanup() and
     4        bsp_get_work_area() into their own files.
     5        * startup/bspclean.c, startup/bspgetworkarea.c,
     6        startup/bspstart.c: New files.
     7        * startup/start.c: Removed.
     8
    192008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • c/src/lib/libbsp/arm/nds/Makefile.am

    rcdeed304 r12d853d  
    3333noinst_PROGRAMS += startup.rel
    3434startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    35     startup/start.c ../../shared/bsppredriverhook.c \
    36     ../../shared/bsppretaskinghook.c ../../shared/bootcard.c
     35    startup/bspstart.c startup/bspclean.c startup/bspgetworkarea.c \
     36    ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
     37    ../../shared/bootcard.c
    3738startup_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
    3839startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
  • c/src/lib/libbsp/arm/nds/configure.ac

    rcdeed304 r12d853d  
    2626## $srcdir/mk_libnds.sh $srcdir
    2727
     28RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     29
    2830# Explicitly list all Makefiles here
    2931AC_CONFIG_FILES([Makefile])
  • 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.