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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i960/] [cvme961/] [startup/] [exit.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  exit
2
 *
3
 *  This routine is used to return control to the NINDY monitor
4
 *  and is automatically invoked by the STDIO exit() routine.
5
 *
6
 *  INPUT:
7
 *    status - exit status
8
 *
9
 *  OUTPUT: NONE
10
 *
11
 *  NOTES:  DOES NOT RETURN!!!
12
 *
13
 *  COPYRIGHT (c) 1989-1999.
14
 *  On-Line Applications Research Corporation (OAR).
15
 *
16
 *  The license and distribution terms for this file may be
17
 *  found in the file LICENSE in this distribution or at
18
 *  http://www.OARcorp.com/rtems/license.html.
19
 *
20
 *  $Id: exit.c,v 1.2 2001-09-27 11:59:57 chris Exp $
21
 */
22
 
23
#include <rtems.h>
24
#include "bsp.h"
25
 
26
void _exit( )
27
{
28
  asm volatile( "mov   0,g0; \
29
                 fmark ; \
30
                 syncf ; \
31
                 .word    0xfeedface ; \
32
                 bx       start" : : );
33
 /*  The constant 0xfeedface is a magic word for break which
34
  *  is defined by NINDY.  The branch extended restarts the
35
  *  application if the user types "go".
36
  */
37
}

powered by: WebSVN 2.1.0

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