Enable/disable logic for each attention type
Allow the handler for each attention type to be enabled or
disabled. The default is all attention handlers are enabled.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Ibe2e7848a7064ae164f70aa5ea5bfca486c4036b
diff --git a/attn/attn_handler.hpp b/attn/attn_handler.hpp
index 5bfe995..f81a9e7 100644
--- a/attn/attn_handler.hpp
+++ b/attn/attn_handler.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <attn/attn_config.hpp>
+
namespace attn
{
@@ -10,19 +12,18 @@
* System Checkstop (checkstop) and Special Attention (special) and handle
* each as follows:
*
- * checkstop: TBD
+ * checkstop: Call hardware error analyzer
* vital: TBD
* special: Determine if the special attention is a Breakpoint (BP),
* Terminate Immediately (TI) or CoreCodeToSp (corecode). For each
* special attention type, do the following:
*
* BP: Notify Cronus
- * TI: TBD
+ * TI: Start host diagnostics mode systemd unit
* Corecode: TBD
- * Recoverable: TBD
*
- * @param i_breakpoints true = breakpoint special attn handling enabled
+ * @param i_config pointer to attention handler configuration object
*/
-void attnHandler(const bool i_breakpoints);
+void attnHandler(Config* i_config);
} // namespace attn