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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sparc/] [shared/] [bspclean.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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.OARcorp.com/rtems/license.html.
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
 *  bspclean.c,v 1.1 2000/11/13 22:31:22 joel Exp
20
 */
21
 
22
#include <bsp.h>
23
 
24
/*
25
 * The app has "exited" (rtems_shutdown_executive returns control to main)
26
 */
27
 
28
void 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
}

powered by: WebSVN 2.1.0

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