source: rtems/doc/supplements/powerpc/fatalerr.t @ 0660b4f8

4.104.114.84.95
Last change on this file since 0660b4f8 was 0660b4f8, checked in by Joel Sherrill <joel.sherrill@…>, on 11/16/99 at 19:50:56

Changed copyright date to 1999.

  • Property mode set to 100644
File size: 1.3 KB
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
13Upon detection of a fatal error by either the
14application or RTEMS the fatal error manager is invoked.  The
15fatal error manager will invoke the user-supplied fatal error
16handlers.  If no user-supplied handlers are configured,  the
17RTEMS provided default fatal error handler is invoked.  If the
18user-supplied fatal error handlers return to the executive the
19default fatal error handler is then invoked.  This chapter
20describes the precise operations of the default fatal error
21handler.
22
23@section Default Fatal Error Handler Operations
24
25The default fatal error handler which is invoked by
26the @code{rtems_fatal_error_occurred} directive when there is no user handler
27configured or the user handler returns control to RTEMS.  The
28default 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
38If 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.