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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [unix/] [posix/] [startup/] [bspclean.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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
 *  bspclean.c,v 1.8 1999/11/17 17:51:19 joel 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.