phal: ipl_error_callback_func prototype related changes
libipl ipl_error_callback_func prototype changed to support additional
error handling support. This commits includes the changes related to
this function prototype function.
Also made changes in internal error handling to make direct
call to processBootError instead of callback function.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I76aa1c4d41e4b2685b3c6534afe35988f35bc103
diff --git a/procedures/phal/start_host.cpp b/procedures/phal/start_host.cpp
index 9b853d7..12eddc3 100644
--- a/procedures/phal/start_host.cpp
+++ b/procedures/phal/start_host.cpp
@@ -183,12 +183,12 @@
{
log<level::ERR>("Exception raised during init PHAL",
entry("EXCEPTION=%s", ex.what()));
- openpower::pel::detail::processBootErrorCallback(false);
+ openpower::pel::detail::processBootError(false);
throw std::runtime_error("PHAL initialization failed");
}
// To clear trace if success
- openpower::pel::detail::processBootErrorCallback(true);
+ openpower::pel::detail::processBootError(true);
setClkNETerminationSite();
@@ -223,12 +223,12 @@
selectBootSeeprom();
// To clear trace as it is success
- openpower::pel::detail::processBootErrorCallback(true);
+ openpower::pel::detail::processBootError(true);
}
catch (const std::exception& ex)
{
// create PEL in failure
- openpower::pel::detail::processBootErrorCallback(false);
+ openpower::pel::detail::processBootError(false);
log<level::ERR>("SEEPROM selection failed", entry("ERR=%s", ex.what()));
throw ex;
}