source: rtems/doc/supplements/powerpc/fatalerr.texi @ 9aceddaf

4.104.114.84.95
Last change on this file since 9aceddaf was 9aceddaf, checked in by Joel Sherrill <joel.sherrill@…>, on 02/11/98 at 14:50:31

updates

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