Changeset 83e392b4 in rtems


Ignore:
Timestamp:
Oct 23, 2008, 1:45:55 PM (11 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.9
Children:
349ca0c5
Parents:
daad59a4
Message:

Reset card on RTEMS shutdown.

Location:
c/src/lib/libbsp/powerpc
Files:
16 edited

Legend:

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

    rdaad59a4 r83e392b4  
     12008-10-23      Eric Norum <norume@aps.anl.gov>
     2
     3        * ep1a/include/bsp.h, motorola_powerpc/Makefile.am,
     4        motorola_powerpc/include/bsp.h, mvme3100/Makefile.am,
     5        mvme3100/include/bsp.h, mvme3100/startup/bspstart.c,
     6        mvme3100/startup/misc.c, mvme5500/include/bsp.h,
     7        mvme5500/startup/bspclean.c, mvme5500/startup/reboot.c,
     8        mvme5500/vectors/exceptionhandler.c, shared/console/inch.c,
     9        shared/console/reboot.c, shared/startup/bspstart.c,
     10        shared/startup/panic.c: Reset card on RTEMS shutdown
     11
    1122008-09-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    213
  • c/src/lib/libbsp/powerpc/ep1a/include/bsp.h

    rdaad59a4 r83e392b4  
    188188
    189189extern void BSP_panic(char *s);
    190 extern void rtemsReboot(void);
     190extern void bsp_reset(void);
    191191extern int BSP_disconnect_clock_handler (void);
    192192extern int BSP_connect_clock_handler (void);
  • c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am

    rdaad59a4 r83e392b4  
    5353    ../../powerpc/shared/startup/pgtbl_activate.c \
    5454    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    55     ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
     55    ../../shared/bsplibc.c ../../shared/bsppost.c \
    5656    ../../shared/gnatinstallhandler.c
    5757tod_SOURCES = ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
  • c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h

    rdaad59a4 r83e392b4  
    190190
    191191extern void BSP_panic(char *s);
    192 extern void rtemsReboot(void);
     192extern void bsp_reset(void);
    193193/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
    194194extern int BSP_disconnect_clock_handler (void);
  • c/src/lib/libbsp/powerpc/mvme3100/Makefile.am

    rdaad59a4 r83e392b4  
    6262    ../../powerpc/shared/startup/zerobss.c \
    6363    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    64     ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
     64    ../../shared/bsplibc.c ../../shared/bsppost.c \
    6565    ../../shared/gnatinstallhandler.c
    6666tod_SOURCES = ../../shared/tod.c tod/todcfg.c
  • c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h

    rdaad59a4 r83e392b4  
    175175/* Misc utility definitions and routines */
    176176
    177 void
    178 rtemsReboot();
     177void bsp_reset(void);
    179178
    180179/* System Control Register */
     
    302301extern rtems_configuration_table  BSP_Configuration;
    303302extern void BSP_panic(char *s);
    304 extern void rtemsReboot(void);
    305303/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
    306304extern int BSP_disconnect_clock_handler (void);
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    rdaad59a4 r83e392b4  
    4949
    5050extern unsigned long __rtems_end[];
    51 extern void          bsp_cleanup(void);
    5251extern void                      BSP_vme_config(void);
     52
     53void bsp_cleanup(void)
     54{
     55    bsp_reset();
     56}
    5357
    5458SPR_RW(SPRG1)
  • c/src/lib/libbsp/powerpc/mvme3100/startup/misc.c

    rdaad59a4 r83e392b4  
    5353
    5454void
    55 rtemsReboot()
     55bsp_reset()
    5656{
    5757uint8_t v;
  • c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h

    rdaad59a4 r83e392b4  
    102102
    103103extern void BSP_panic(char *s);
    104 extern void rtemsReboot(void);
     104extern void bsp_reset(void);
    105105/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
    106106extern int BSP_disconnect_clock_handler (void);
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c

    rdaad59a4 r83e392b4  
    99#if AUTO_BOOT
    1010  /* Till Straumann <strauman@slac.stanford.edu> for SVGM */
    11   void rtemsReboot();
     11  void bsp_reset();
    1212
    13   rtemsReboot();
     13  bsp_reset();
    1414#else
    1515  /* Kate Feng <feng1@bnl.gov> for the MVME5500 */
  • c/src/lib/libbsp/powerpc/mvme5500/startup/reboot.c

    rdaad59a4 r83e392b4  
    55#include <libcpu/stackTrace.h>
    66
    7 void rtemsReboot()
     7void bsp_reset()
    88{
    99
  • c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c

    rdaad59a4 r83e392b4  
    6666
    6767extern void
    68 rtemsReboot(void);
     68bsp_reset(void);
    6969
    7070static volatile BSP_ExceptionExtension  BSP_exceptionExtension = 0;
     
    237237                } else {
    238238                        printk("PANIC, rebooting...\n");
    239                         rtemsReboot();
     239                        bsp_reset();
    240240                }
    241241    }
  • c/src/lib/libbsp/powerpc/shared/console/inch.c

    rdaad59a4 r83e392b4  
    155155    case 0x53:
    156156      if (ctrl_pressed && alt_pressed)
    157         rtemsReboot(); /* ctrl+alt+del -> reboot */
     157        bsp_reset(); /* ctrl+alt+del -> reboot */
    158158      break;
    159159
  • c/src/lib/libbsp/powerpc/shared/console/reboot.c

    rdaad59a4 r83e392b4  
    66
    77/*-------------------------------------------------------------------------+
    8 |         Function: rtemsReboot
     8|         Function: bsp_reset
    99|      Description: Reboot the PC.
    1010| Global Variables: None.
     
    1212|          Returns: Nothing.
    1313+--------------------------------------------------------------------------*/
    14 void rtemsReboot(void)
     14void bsp_reset(void)
    1515{
    1616  printk("Printing a stack trace for your convenience :-)\n");
     
    2323  *(unsigned char*)0xffe00000 |= 0x80;
    2424#endif
    25 } /* rtemsReboot */
     25} /* bsp_reset */
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    rdaad59a4 r83e392b4  
    4444extern unsigned get_L2CR(void);
    4545extern void set_L2CR(unsigned);
    46 extern void bsp_cleanup(void);
    4746extern Triv121PgTbl BSP_pgtbl_setup(unsigned long);
    4847extern void                     BSP_pgtbl_activate(Triv121PgTbl);
    4948extern void                     BSP_vme_config(void);
     49
     50void bsp_cleanup(void) { extern void bsp_reset(void); bsp_reset(); }
    5051
    5152SPR_RW(SPRG1)
  • c/src/lib/libbsp/powerpc/shared/startup/panic.c

    rdaad59a4 r83e392b4  
    1111        printk("Press a key to reboot\n");
    1212        BSP_poll_char_via_serial();
    13         rtemsReboot();
     13        bsp_reset();
    1414}
    1515
Note: See TracChangeset for help on using the changeset viewer.