summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2015-02-11 10:54:03 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-24 11:54:23 -0600
commitb03dc1b8e4b20a8039775e474bd9ebf2503bf48c (patch)
tree3ec60a0efc1b5e8bb3d34a79819f30df5191303c /src/usr/hwas
parentb6180e2871cae69d8864e38e33d6e9ba9400eef8 (diff)
downloadtalos-hostboot-b03dc1b8e4b20a8039775e474bd9ebf2503bf48c.tar.gz
talos-hostboot-b03dc1b8e4b20a8039775e474bd9ebf2503bf48c.zip
Runtime error log support in OpenPOWER
Change-Id: I1bb13fede249ee09a65541cd04c6449b1bb555b2 RTC: 122885 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15712 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/common/hwasCallout.C15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/usr/hwas/common/hwasCallout.C b/src/usr/hwas/common/hwasCallout.C
index 92c5a8e7b..c93cf6c32 100644
--- a/src/usr/hwas/common/hwasCallout.C
+++ b/src/usr/hwas/common/hwasCallout.C
@@ -5,9 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2014 */
-/* [+] International Business Machines Corp. */
+/* Contributors Listed Below - COPYRIGHT 2012,2015 */
/* [+] Google Inc. */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -46,6 +46,11 @@
namespace HWAS
{
+#ifdef __HOSTBOOT_RUNTIME // defined in hwas.C
+HWAS_TD_t g_trac_imp_hwas = NULL; // important - slow
+TRAC_INIT(&g_trac_imp_hwas, "HWAS_I", KILOBYTE );
+#endif
+
using namespace HWAS::COMMON;
bool retrieveTarget(uint8_t * & io_uData,
@@ -72,7 +77,7 @@ bool retrieveTarget(uint8_t * & io_uData,
if (unlikely(o_pTarget == NULL))
{ // only happen if we have a corrupt errlog or targeting.
HWAS_ERR("HW callout; o_pTarget was NULL!!!");
-
+#ifndef __HOSTBOOT_RUNTIME
/*@
* @errortype
* @moduleid HWAS::MOD_PROCESS_CALLOUT
@@ -87,6 +92,7 @@ bool retrieveTarget(uint8_t * & io_uData,
HWAS::RC_INVALID_TARGET,
i_errl->plid());
errlCommit(errl, HWAS_COMP_ID);
+#endif
l_err = true;
}
}
@@ -98,6 +104,7 @@ bool retrieveTarget(uint8_t * & io_uData,
return l_err;
}
+#ifndef __HOSTBOOT_RUNTIME
void processCallout(errlHndl_t &io_errl,
uint8_t *i_pData,
uint64_t i_Size,
@@ -244,4 +251,6 @@ void processCallout(errlHndl_t &io_errl,
HWAS_DBG("processCallout exit");
} // processCallout
+#endif
+
}; // end namespace
OpenPOWER on IntegriCloud