source: rtems/c/src/lib/libbsp/arm/edb7312/startup/exit.c @ 6128a4a

4.104.114.84.95
Last change on this file since 6128a4a was 6128a4a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 10:43:04

Remove stray white spaces.

  • Property mode set to 100644
File size: 799 bytes
Line 
1/*
2 * Cirrus EP7312 BSP Shutdown  code
3 *
4 * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *
12 *  $Id$
13*/
14
15#include <stdio.h>
16#include <bsp.h>
17#include <rtems/bspIo.h>
18#include <rtems/libio.h>
19
20int uart_poll_read(int);
21
22void rtemsReboot (void)
23{
24  asm volatile ("b _start");
25}
26
27void bsp_cleanup(void)
28{
29  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
30  /*
31   * AT this point, the console driver is disconnected => we must
32   * use polled output/input. This is exactly what printk
33   * does.
34   */
35  printk("\n");
36  printk(line);
37  while (uart_poll_read(0) < 0) continue;
38
39  /* rtemsReboot(); */
40}
Note: See TracBrowser for help on using the repository browser.