4.104.114.84.95
Line | |
---|
1 | /* 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, 1990, 1991, 1992, 1993, 1994. |
---|
14 | * On-Line Applications Research Corporation (OAR). |
---|
15 | * All rights assigned to U.S. Government, 1994. |
---|
16 | * |
---|
17 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
18 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
19 | * notice must appear in all copies of this file and its derivatives. |
---|
20 | * |
---|
21 | * $Id$ |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.