Changeset 7d0bdca in rtems


Ignore:
Timestamp:
Nov 14, 2012, 8:27:43 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
e4b40531
Parents:
891d0d96
git-author:
Sebastian Huber <sebastian.huber@…> (11/14/12 08:27:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/12 14:33:11)
Message:

score: Add nest level to interal error state

Add Internal_errors_Information::nest_level. This helps to detect
recursive calls to _Internal_error_Occurred().

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/interr.h

    r891d0d96 r7d0bdca  
    8989  /** This is the error code. */
    9090  Internal_errors_t       the_error;
     91
     92  /**
     93   * @brief The internal error nest level.
     94   *
     95   * This helps to detect recursive calls to _Internal_error_Occurred().
     96   */
     97  uint32_t                nest_level;
    9198} Internal_errors_Information;
    9299
  • cpukit/score/src/interr.c

    r891d0d96 r7d0bdca  
    5656  _Internal_errors_What_happened.the_error   = the_error;
    5757
     58  ++_Internal_errors_What_happened.nest_level;
     59
    5860  _User_extensions_Fatal( the_source, is_internal, the_error );
    5961
Note: See TracChangeset for help on using the changeset viewer.