source: rtems/c/src/lib/libbsp/i386/pc386/startup/exit.c @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*-------------------------------------------------------------------------+
2| exit.c v1.1 - PC386 BSP - 1997/08/07
3+--------------------------------------------------------------------------+
4| Routines to shutdown and reboot the PC.
5+--------------------------------------------------------------------------+
6| (C) Copyright 1997 -
7| - NavIST Group - Real-Time Distributed Systems and Industrial Automation
8|
9| http://pandora.ist.utl.pt
10|
11| Instituto Superior Tecnico * Lisboa * PORTUGAL
12+--------------------------------------------------------------------------+
13| Disclaimer:
14|
15| This file is provided "AS IS" without warranty of any kind, either
16| expressed or implied.
17+--------------------------------------------------------------------------+
18| This code is based on:
19|   exit.c,v 1.2 1995/12/19 20:07:36 joel Exp -  go32 BSP
20| With the following copyright notice:
21| **************************************************************************
22| *  COPYRIGHT (c) 1989-1999.
23| *  On-Line Applications Research Corporation (OAR).
24| *
25| *  The license and distribution terms for this file may be
26| *  found in found in the file LICENSE in this distribution or at
27| *  http://www.OARcorp.com/rtems/license.html.
28| **************************************************************************
29|
30|  $Id$
31+--------------------------------------------------------------------------*/
32
33
34#include <stdio.h>
35#include <bsp.h>
36#include <rtems/libio.h>
37#include <uart.h>
38
39void bsp_cleanup(void)
40{
41  unsigned char ch;
42  static   char line[]="EXECUTIVE SHUTDOWN! Any key to reboot...";
43  /*
44   * AT this point, the console driver is disconnected => we must
45   * use polled output/input. This is exactly what printk
46   * does.
47   */
48  printk("\n");
49  printk(line);
50  ch = BSP_poll_char();
51  rtemsReboot();
52}
53
54
55
56
57
58
59
60
Note: See TracBrowser for help on using the repository browser.