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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [doc/] [supplements/] [powerpc/] [fatalerr.t] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
@c
2
@c  COPYRIGHT (c) 1988-2002.
3
@c  On-Line Applications Research Corporation (OAR).
4
@c  All rights reserved.
5
@c
6
@c  fatalerr.t,v 1.7 2002/01/17 21:47:46 joel Exp
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
 

powered by: WebSVN 2.1.0

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