source: rtems/c/src/lib/libbsp/sparc/shared/bspclean.c @ 206e590

4.104.114.84.95
Last change on this file since 206e590 was ade07c2, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:52:57

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

  • bspclean.c, bspstart.c: URL for license changed.
  • Property mode set to 100644
File size: 902 bytes
Line 
1/*  bspclean.c
2 *
3 *  This file contains cleanup code executed when the application exits.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  Ported to ERC32 implementation of the SPARC by On-Line Applications
13 *  Research Corporation (OAR) under contract to the European Space
14 *  Agency (ESA).
15 *
16 *  ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995.
17 *  European Space Agency.
18 *
19 *  $Id$
20 */
21
22#include <bsp.h>
23
24/*
25 * The app has "exited" (rtems_shutdown_executive returns control to main)
26 */
27
28void bsp_cleanup( void )
29{
30    /*
31     * "halt" by trapping to the simulator command line.
32     * set %g1 to 1 to detect clean exit.
33     */
34
35
36  asm volatile( "mov 1, %g1; ta 0" );
37}
Note: See TracBrowser for help on using the repository browser.