mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspclean.c: Removed.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspclean.c: Removed.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/uart.c, startup/bspclean.c,
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Cogent CSB336 Shutdown code
|
||||
*
|
||||
* Copyright (c) 2004 by Cogent Computer Systems
|
||||
* Written by Jay Monkman <jtm@lopingdog.com>
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <rtems/libio.h>
|
||||
|
||||
int uart_poll_read(int);
|
||||
void bsp_reset(void);
|
||||
|
||||
void bsp_cleanup(void)
|
||||
{
|
||||
static char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
|
||||
/*
|
||||
* AT this point, the console driver is disconnected => we must
|
||||
* use polled output/input. This is exactly what printk
|
||||
* does.
|
||||
*/
|
||||
printk("\n");
|
||||
printk(line);
|
||||
while (BSP_poll_char() < 0) continue;
|
||||
|
||||
bsp_reset();
|
||||
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspclean.c: Removed.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Routines to shutdown and reboot the PC.
|
||||
*
|
||||
* (C) Copyright 1997 -
|
||||
* - NavIST Group - Real-Time Distributed Systems and Industrial Automation
|
||||
* http://pandora.ist.utl.pt
|
||||
* Instituto Superior Tecnico * Lisboa * PORTUGAL
|
||||
*
|
||||
* Disclaimer:
|
||||
*
|
||||
* This file is provided "AS IS" without warranty of any kind, either
|
||||
* expressed or implied.
|
||||
*
|
||||
*
|
||||
* This code is based on:
|
||||
* exit.c,v 1.2 1995/12/19 20:07:36 joel Exp - go32 BSP
|
||||
* With the following copyright notice:
|
||||
* **************************************************************************
|
||||
* * COPYRIGHT (c) 1989-1999.
|
||||
* * On-Line Applications Research Corporation (OAR).
|
||||
* *
|
||||
* * The license and distribution terms for this file may be
|
||||
* * found in found in the file LICENSE in this distribution or at
|
||||
* * http://www.rtems.com/license/LICENSE.
|
||||
* **************************************************************************
|
||||
*
|
||||
* Joel: It has been modified many times since submission.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <uart.h>
|
||||
|
||||
void bsp_cleanup(void)
|
||||
{
|
||||
/*
|
||||
* At this point, the console driver is disconnected => we must
|
||||
* use polled output/input. This is exactly what printk
|
||||
* does.
|
||||
*/
|
||||
printk( "\nEXECUTIVE SHUTDOWN! " );
|
||||
|
||||
#if (BSP_PRESS_KEY_FOR_RESET)
|
||||
{
|
||||
unsigned char ch;
|
||||
|
||||
printk( "Any key to reboot..." );
|
||||
ch = BSP_poll_char();
|
||||
}
|
||||
#else
|
||||
printk( "resetting system\n" );
|
||||
#endif
|
||||
rtemsReboot();
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspclean.c: Removed.
|
||||
|
||||
2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* include/bsp.h: Remove unnecessary boilerplate comments.
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* bspclean.c,v 1.2.2.1 2003/09/04 18:44:49 joel Exp
|
||||
*/
|
||||
|
||||
void bsp_cleanup( void )
|
||||
{
|
||||
extern void _sys_exit(int);
|
||||
_sys_exit(0);
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspclean.c: Removed.
|
||||
|
||||
2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* include/bsp.h: Remove unnecessary boilerplate comments.
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* bspclean.c,v 1.2.2.1 2003/09/04 18:44:49 joel Exp
|
||||
*/
|
||||
|
||||
void bsp_cleanup( void )
|
||||
{
|
||||
extern void _sys_exit(int);
|
||||
_sys_exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user