Changeset 34e9f2ac in rtems


Ignore:
Timestamp:
Sep 22, 2008, 9:49:15 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1dad9e7
Parents:
d50ba03
Message:

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

  • Makefile.am, configure.ac, startup/bspstart.c: Use standardized bsp_cleanup() which can optionally print a message, poll for user to press key, and call bsp_reset(). Using this eliminates the various bsp_cleanup() implementations which had their own implementation and variety of string constants.
  • startup/bspreset.c: New file.
  • startup/bspclean.c: Removed.
Location:
c/src/lib/libbsp/arm/csb337
Files:
1 added
1 deleted
4 edited

Legend:

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

    rd50ba03 r34e9f2ac  
     12008-09-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c: Use standardized
     4        bsp_cleanup() which can optionally print a message, poll for user to
     5        press key, and call bsp_reset(). Using this eliminates the various
     6        bsp_cleanup() implementations which had their own implementation and
     7        variety of string constants.
     8        * startup/bspreset.c: New file.
     9        * startup/bspclean.c: Removed.
     10
    1112008-09-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    rd50ba03 r34e9f2ac  
    2828startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    2929    ../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
    30     ../../shared/bsppretaskinghook.c startup/bspstart.c startup/bspclean.c \
     30    ../../shared/bsppretaskinghook.c startup/bspstart.c \
     31    ../../shared/bspclean.c startup/bspreset.c \
    3132    startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
    3233    ../../shared/gnatinstallhandler.c
  • c/src/lib/libbsp/arm/csb337/configure.ac

    rd50ba03 r34e9f2ac  
    1919AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2020
     21RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[1])
     22RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
     23[If defined, print a message and wait until pressed before resetting
     24 board when application exits.])
     25
     26RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[1])
     27RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
     28[If defined, reset the board when the application exits.])
     29
    2130RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
    2231
  • c/src/lib/libbsp/arm/csb337/startup/bspstart.c

    rd50ba03 r34e9f2ac  
    102102 */
    103103void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
    104 
    105 /*
    106  *  Reset the system.
    107  *
    108  *  This functions enables the watchdog and waits for it to
    109  *  fire, thus resetting the system.
    110  */
    111 void bsp_reset(void)
    112 {
    113   rtems_interrupt_level level;
    114 
    115   rtems_interrupt_disable(level);
    116 
    117   /* Enable the watchdog timer, then wait for the world to end. */
    118   ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1;
    119 
    120   while(1);
    121 }
Note: See TracChangeset for help on using the changeset viewer.