diff options
Diffstat (limited to 'src/include/kernel')
-rw-r--r-- | src/include/kernel/hbterminatetypes.H | 1 | ||||
-rw-r--r-- | src/include/kernel/terminate.H | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/include/kernel/hbterminatetypes.H b/src/include/kernel/hbterminatetypes.H index e95a77010..593919ca3 100644 --- a/src/include/kernel/hbterminatetypes.H +++ b/src/include/kernel/hbterminatetypes.H @@ -107,6 +107,7 @@ enum hb_terminate_type // Enum used in the flag indicating who initiated the TI enum hb_terminate_source { + NO_TI_ERROR = 0x0000, TI_KERNEL_ASSERT = 0x0001, TI_CRIT_ASSERT = 0x0002, TI_SHUTDOWN = 0x0003, diff --git a/src/include/kernel/terminate.H b/src/include/kernel/terminate.H index 551f66057..b80331495 100644 --- a/src/include/kernel/terminate.H +++ b/src/include/kernel/terminate.H @@ -30,12 +30,17 @@ #include <kernel/types.h> - /** @fn terminateExecuteTI * @brief Sequence to execute a TI attn */ void terminateExecuteTI(); +/** @fn initKernelMutex + * @brief initialize the internal kernel mutex used to lock + * the HB TI area. + */ +void initKernelTIMutex(); + /** @fn termWritePlid * Update TI data area with a PLID. * @param[in] i_source: indicates what type of fail forced the TI @@ -50,12 +55,15 @@ void termWritePlid(uint16_t i_source, uint32_t plid); * @param[in] i_reasoncode: reasoncode for the failure(assert or shutdown) * @param[in] i_failAddr: i_linkRegister() value (address of failure) * @param[in] i_error_info: addt'l error info to add to TI data + * @param[in] i_forceWrite: force the HB TI area to be overwritten with + * the passed parameters. * @param[out] NONE: */ void termWriteSRC(uint16_t i_source, uint16_t i_reasoncode, uint64_t i_failAddr = 0, - uint32_t i_error_info = 0); + uint32_t i_error_info = 0, + bool i_forceWrite = false); /** @fn termModifySRC * Modify an SRC and the TI data area for Bootloader |