4.104.114.84.95
Line | |
---|
1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1999. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Default Fatal Error Processing |
---|
10 | |
---|
11 | @section Introduction |
---|
12 | |
---|
13 | Upon detection of a fatal error by either the |
---|
14 | application or RTEMS the fatal error manager is invoked. The |
---|
15 | fatal error manager will invoke the user-supplied fatal error |
---|
16 | handlers. If no user-supplied handlers are configured, the |
---|
17 | RTEMS provided default fatal error handler is invoked. If the |
---|
18 | user-supplied fatal error handlers return to the executive the |
---|
19 | default fatal error handler is then invoked. This chapter |
---|
20 | describes the precise operations of the default fatal error |
---|
21 | handler. |
---|
22 | |
---|
23 | @section Default Fatal Error Handler Operations |
---|
24 | |
---|
25 | The default fatal error handler which is invoked by |
---|
26 | the @code{rtems_fatal_error_occurred} directive when there is no user handler |
---|
27 | configured or the user handler returns control to RTEMS. The |
---|
28 | default fatal error handler performs the following actions: |
---|
29 | |
---|
30 | @itemize @bullet |
---|
31 | |
---|
32 | @item places the error code in r3, and |
---|
33 | |
---|
34 | @item executes a trap instruction which results in a Program Exception. |
---|
35 | |
---|
36 | @end itemize |
---|
37 | |
---|
38 | If the Program Exception returns, then the following actions are performed: |
---|
39 | |
---|
40 | @itemize @bullet |
---|
41 | |
---|
42 | @item disables all processor exceptions by loading a 0 into the MSR, and |
---|
43 | |
---|
44 | @item goes into an infinite loop to simulate a halt processor instruction. |
---|
45 | |
---|
46 | @end itemize |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.