diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2013-09-19 12:50:27 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-08 21:33:53 -0500 |
commit | fc5719ef7796c39c5e6c8abad6391dd311c9126c (patch) | |
tree | 67311300b63fc5086f7c5c69efb272ebe3c82360 /src/include/usr/errl | |
parent | e588a94e039ad1a02fc366f371471d65337369fa (diff) | |
download | talos-hostboot-fc5719ef7796c39c5e6c8abad6391dd311c9126c.tar.gz talos-hostboot-fc5719ef7796c39c5e6c8abad6391dd311c9126c.zip |
Implement termination from fatal error log.
Change-Id: Ie83f0876887ee0465cd4d430fa4a335f6aa396ec
RTC:35268
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6403
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r-- | src/include/usr/errl/errlentry.H | 12 | ||||
-rw-r--r-- | src/include/usr/errl/hberrltypes.H | 3 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H index d90f358a6..7bc971ed0 100644 --- a/src/include/usr/errl/errlentry.H +++ b/src/include/usr/errl/errlentry.H @@ -312,6 +312,14 @@ public: void setTermState(const errlTermState_t i_termState); /** + * @brief Helper function to determine if log is a terminating error + * + * + * @return returns true if error will result in system termination. + */ + bool isTerminateLog() const; + + /** * @brief Add data to the iv_Src user data words. * * @param[in] i_data - information to add to the user data word 1. @@ -615,8 +623,8 @@ private: std::vector<uint64_t> iv_btAddrs; // list of addresses for the backtrace ErrlUserDetailsBackTrace * iv_pBackTrace; // Pointer to back trace - // TODO need to interpret term state and terminate accordingly. - // TODO termstate is presently not being flattend into PEL + // termstate will not be flattend into PEL, its only used by + // hostboot. errlTermState_t iv_termState; }; diff --git a/src/include/usr/errl/hberrltypes.H b/src/include/usr/errl/hberrltypes.H index 3c0611366..b8e9c220a 100644 --- a/src/include/usr/errl/hberrltypes.H +++ b/src/include/usr/errl/hberrltypes.H @@ -287,11 +287,12 @@ enum epubSubSystem_t /** * @brief Terminating flag definitions * Needs to fit into 1 word (32-bits) for flattening purposes. - * TODO Termination state and termination action. */ enum errlTermState_t { TERM_STATE_NO_FLAGS = 0x00000000, + TERM_STATE_MNFG = 0x10000000, + TERM_STATE_SOFT = 0x20000000, TERM_STATE_UNKNOWN = 0xFFFFFFFF, }; |