source: rtems/c/src/lib/libbsp/arm/csb337/startup/bspclean.c @ 3ab13d5

4.104.115
Last change on this file since 3ab13d5 was 3ab13d5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/12/08 at 21:18:07

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

  • Makefile.am, configure.ac, startup/bspclean.c, startup/bspstart.c: Now support bsp_get_work_area() and used shared implementation of it and bsp_pretasking_hook.
  • Property mode set to 100644
File size: 768 bytes
Line 
1/*
2 * Cogent CSB337 Shutdown  code
3 *
4 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.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 dbgu_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 (dbgu_poll_read(0) < 0) continue;
38}
Note: See TracBrowser for help on using the repository browser.