4.104.114.84.95
Last change
on this file since 3eec211 was
3eec211,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/13/00 at 22:31:22
|
2000-11-13 Jiri Gaisler <jgais@…>
- ChangeLog?, .cvsignore, Makefile.am, bspclean.c, bspstart.c,
gnatcommon.c, start.S: New files. Largely moved from ERC32
BSP to be able to be shared with LEON and other SPARC BSPs.
|
-
Property mode set to
100644
|
File size:
907 bytes
|
Rev | Line | |
---|
[3eec211] | 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.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$ |
---|
| 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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.