fatalerr.t

来自「RTEMS (Real-Time Executive for Multiproc」· T 代码 · 共 48 行

T
48
字号
@c@c  COPYRIGHT (c) 1988-2002.@c  On-Line Applications Research Corporation (OAR).@c  All rights reserved.@c@c  $Id: fatalerr.t,v 1.7 2002/01/17 21:47:46 joel Exp $@c@chapter Default Fatal Error Processing@section IntroductionUpon detection of a fatal error by either theapplication or RTEMS the fatal error manager is invoked.  Thefatal error manager will invoke the user-supplied fatal errorhandlers.  If no user-supplied handlers are configured,  theRTEMS provided default fatal error handler is invoked.  If theuser-supplied fatal error handlers return to the executive thedefault fatal error handler is then invoked.  This chapterdescribes the precise operations of the default fatal errorhandler.@section Default Fatal Error Handler OperationsThe default fatal error handler which is invoked bythe @code{rtems_fatal_error_occurred} directive when there is no user handlerconfigured or the user handler returns control to RTEMS.  Thedefault fatal error handler performs the following actions:@itemize @bullet@item places the error code in r3, and@item executes a trap instruction which results in a Program Exception.@end itemizeIf the Program Exception returns, then the following actions are performed:@itemize @bullet@item disables all processor exceptions by loading a 0 into the MSR, and@item goes into an infinite loop to simulate a halt processor instruction.@end itemize

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?