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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [sparc/] [erc32/] [startup/] [bspclean.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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
 *  $Id: bspclean.c,v 1.2 2001-09-27 12:01:14 chris 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.