Changeset 788870e in rtems


Ignore:
Timestamp:
Sep 22, 2008, 9:50:31 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1762375
Parents:
87a38dd
Message:

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

  • shared/console/inch.c, shared/startup/panic.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.
  • shared/console/bspreset.c: New file.
  • shared/console/reboot.c: Removed.
Location:
c/src/lib/libbsp/powerpc
Files:
3 edited
1 moved

Legend:

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

    r87a38dd r788870e  
     12008-09-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * shared/console/inch.c, shared/startup/panic.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        * shared/console/bspreset.c: New file.
     9        * shared/console/reboot.c: Removed.
     10
    1112008-09-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • c/src/lib/libbsp/powerpc/shared/console/bspreset.c

    r87a38dd r788870e  
    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/console/inch.c

    r87a38dd r788870e  
    2121
    2222#include <bsp.h>
     23#include <bsp/bootcard.h>
    2324#ifdef BSP_KBD_IOBASE
    2425#include <bsp/irq.h>
     
    155156    case 0x53:
    156157      if (ctrl_pressed && alt_pressed)
    157         rtemsReboot(); /* ctrl+alt+del -> reboot */
     158        bsp_reset(); /* ctrl+alt+del -> reboot */
    158159      break;
    159160
  • c/src/lib/libbsp/powerpc/shared/startup/panic.c

    r87a38dd r788870e  
    11#include <rtems.h>
    22#include <bsp.h>
     3#include <bsp/bootcard.h>
    34#include <bsp/uart.h>
    45#include <rtems/bspIo.h>
     
    1112        printk("Press a key to reboot\n");
    1213        BSP_poll_char_via_serial();
    13         rtemsReboot();
     14        bsp_reset();
    1415}
    1516
Note: See TracChangeset for help on using the changeset viewer.