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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i960/] [rxgen960/] [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-1997.
14
 *  On-Line Applications Research Corporation (OAR).
15
 *  Copyright assigned to U.S. Government, 1994.
16
 *
17
 *  The license and distribution terms for this file may in
18
 *  the file LICENSE in this distribution or at
19
 *  http://www.OARcorp.com/rtems/license.html.
20
 *
21
 *  $Id: exit.c,v 1.2 2001-09-27 11:59:59 chris Exp $
22
 */
23
 
24
#include <rtems.h>
25
#include "bsp.h"
26
 
27
void _exit( )
28
{
29
  asm volatile( "mov   0,g0; \
30
                 fmark ; \
31
                 syncf ; \
32
                 .word    0xfeedface ; \
33
                 bx       start" : : );
34
 /*  The constant 0xfeedface is a magic word for break which
35
  *  is defined by NINDY.  The branch extended restarts the
36
  *  application if the user types "go".
37
  */
38
}

powered by: WebSVN 2.1.0

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