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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sparc/] [shared/] [bspclean.c] - Rev 1026

Go to most recent revision | Compare with Previous | Blame | View Log

/*  bspclean.c
 *
 *  This file contains cleanup code executed when the application exits.
 *
 *  COPYRIGHT (c) 1989-1999.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.OARcorp.com/rtems/license.html.
 *
 *  Ported to ERC32 implementation of the SPARC by On-Line Applications
 *  Research Corporation (OAR) under contract to the European Space 
 *  Agency (ESA).
 *
 *  ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995. 
 *  European Space Agency.
 *
 *  bspclean.c,v 1.1 2000/11/13 22:31:22 joel Exp
 */
 
#include <bsp.h>
 
/*
 * The app has "exited" (rtems_shutdown_executive returns control to main)
 */
 
void bsp_cleanup( void )
{
    /*
     * "halt" by trapping to the simulator command line.
     * set %g1 to 1 to detect clean exit.
     */
 
 
  asm volatile( "mov 1, %g1; ta 0" );
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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