diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-14 20:52:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-14 20:52:15 +0000 |
commit | 9c329a5c144ea04ce0e8e2025818ce64dc088113 (patch) | |
tree | 1aa360501fff0d805a8623da954c16cf6b0db2fa /c/src/lib/libbsp/powerpc/psim/startup/bspclean.c | |
parent | new file (diff) | |
download | rtems-9c329a5c144ea04ce0e8e2025818ce64dc088113.tar.bz2 |
Moved bspclean from assembly to C and made exit act properly.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/startup/bspclean.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c b/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c new file mode 100644 index 0000000000..fce38e7b3a --- /dev/null +++ b/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c @@ -0,0 +1,17 @@ +/* + * COPYRIGHT (c) 1989-1998. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * 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. + * + * $Id$ + */ + +void bsp_cleanup( void ) +{ + asm volatile( "li 10,99" ); /* 0x63 */ + asm volatile( "sc" ); +} |