OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [unix/] [posix/] [startup/] [bspclean.c] - Blame information for rev 383

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  bsp_cleanup()
2
 *
3
 *  This routine normally is part of start.s and returns
4
 *  control to a monitor but on the UNIX simulator
5
 *  we do that directly from main.c.
6
 *
7
 *  INPUT:  NONE
8
 *
9
 *  OUTPUT: NONE
10
 *
11
 *  COPYRIGHT (c) 1989-1999.
12
 *  On-Line Applications Research Corporation (OAR).
13
 *
14
 *  The license and distribution terms for this file may be
15
 *  found in the file LICENSE in this distribution or at
16
 *  http://www.OARcorp.com/rtems/license.html.
17
 *
18
 *  $Id: bspclean.c,v 1.2 2001-09-27 12:01:15 chris Exp $
19
 */
20
 
21
#include <bsp.h>
22
 
23
#include <stdio.h>
24
 
25
/*
26
 * The app has "exited" (called rtems_shutdown_executive)
27
 */
28
 
29
void bsp_cleanup( void )
30
{
31
  /*
32
   * Invoke any fatal error extension and "halt"
33
   * By definition, rtems_fatal_error_occurred does not return.
34
   */
35
 
36
  fflush(stdout);
37
  fflush(stderr);
38
 
39
  rtems_fatal_error_occurred(0);
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.