Changeset bf7e13f in rtems


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

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

  • Makefile.am, configure.ac, console/uart.c, 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/gp32
Files:
1 added
1 deleted
5 edited

Legend:

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

    r61433e8 rbf7e13f  
     12008-09-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, console/uart.c, startup/bspstart.c: Use
     4        standardized bsp_cleanup() which can optionally print a message, poll
     5        for user to press key, and call bsp_reset(). Using this eliminates
     6        the various bsp_cleanup() implementations which had their own
     7        implementation and 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/gp32/Makefile.am

    r61433e8 rbf7e13f  
    2929startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    3030    ../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
    31     ../../shared/bsppretaskinghook.c startup/bspstart.c startup/bspclean.c \
     31    ../../shared/bsppretaskinghook.c startup/bspstart.c \
     32    ../../shared/bspclean.c startup/bspreset.c \
    3233    startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
    3334    ../../shared/gnatinstallhandler.c
  • c/src/lib/libbsp/arm/gp32/configure.ac

    r61433e8 rbf7e13f  
    1919AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2020
     21RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[0])
     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/gp32/console/uart.c

    r61433e8 rbf7e13f  
    246246BSP_output_char_function_type BSP_output_char = _BSP_put_char;
    247247
    248 
    249 
     248static int _BSP_get_char(void)
     249{
     250  return uart_poll_read(0);
     251}
     252
     253BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char;
  • c/src/lib/libbsp/arm/gp32/startup/bspstart.c

    r61433e8 rbf7e13f  
    1212 *   http://www.rtems.com/license/LICENSE.
    1313 *
     14 * $Id$
    1415 */
    1516
     
    102103
    103104void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
    104 
    105 void bsp_reset(void)
    106 {
    107   rtems_interrupt_level level;
    108   rtems_interrupt_disable(level);
    109   printk("bsp_reset.....\n");
    110   /* disable mmu, invalide i-cache and call swi #4 */
    111   asm volatile(""
    112     "mrc    p15,0,r0,c1,c0,0  \n"
    113     "bic    r0,r0,#1          \n"
    114     "mcr    p15,0,r0,c1,c0,0  \n"
    115     "nop                      \n"
    116     "nop                      \n"
    117     "nop                      \n"
    118     "nop                      \n"
    119     "nop                      \n"
    120     "mov    r0,#0             \n"
    121     "MCR    p15,0,r0,c7,c5,0  \n"
    122     "nop                      \n"
    123     "nop                      \n"
    124     "nop                      \n"
    125     "nop                      \n"
    126     "nop                      \n"
    127     "swi    #4                "
    128     :
    129     :
    130     : "r0"
    131   );
    132   /* we should be back in bios now */
    133 }
Note: See TracChangeset for help on using the changeset viewer.