source: rtems/c/src/lib/libbsp/unix/posix/startup/bspclean.c @ 3e6211b

Last change on this file since 3e6211b was 3e6211b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 4, 2003 at 6:45:40 PM

2003-09-04 Joel Sherrill <joel@…>

  • clock/clock.c, console/console.c, include/bsp.h, shmsupp/addrconv.c, shmsupp/cause_intr.c, shmsupp/getcfg.c, shmsupp/lock.c, shmsupp/mpisr.c, startup/bspclean.c, startup/bspstart.c, startup/exit.c, startup/setvec.c, timer/timer.c: URL for license changed.
  • Property mode set to 100644
File size: 798 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.rtems.com/license/LICENSE.
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.