source: rtems/c/src/lib/libbsp/unix/posix/startup/bspclean.c @ 7cea895

Last change on this file since 7cea895 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 803 bytes
Line 
1/*  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$
19 */
20
21#include <bsp.h>
22
23#include <stdio.h>
24
25/*
26 * The app has "exited" (called rtems_shutdown_executive)
27 */
28
29void 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}
Note: See TracBrowser for help on using the repository browser.