source: rtems/c/src/lib/libbsp/arm/rtl22xx/startup/exit.c @ 4f181b3

4.104.114.84.9
Last change on this file since 4f181b3 was 4f181b3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 25, 2007 at 1:13:54 PM

2007-04-25 Ray Xu <xr@…>

  • include/tm27.h, startup/bspstart.c, startup/exit.c, startup/linkcmds: New (Initial submission).
  • Property mode set to 100644
File size: 800 bytes
Line 
1/*
2 * Cirrus LPC22XX 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.