summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2016-07-13 09:48:21 -0500
committerStephen Cprek <smcprek@us.ibm.com>2016-07-18 15:32:32 -0500
commit34675e0fb273ad15c361c685b0817e509b04e752 (patch)
treed121cdf0cccbb792356a049e9633c00e1e04b5df
parent8b1ccf1be9980ac80f9ed1d624b35c1c4bd0a50b (diff)
downloadtalos-hostboot-34675e0fb273ad15c361c685b0817e509b04e752.tar.gz
talos-hostboot-34675e0fb273ad15c361c685b0817e509b04e752.zip
PRD: Fixed MCBIST data bundle initialization
Change-Id: I4eaa29ca5b9fe365c263da3e68bc9a9425a3fde9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26963 Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26972 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
-rw-r--r--src/usr/diag/prdf/plat/p9/prdfP9Mcbist.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/plat/p9/prdfP9Mcbist.C b/src/usr/diag/prdf/plat/p9/prdfP9Mcbist.C
index 111497e3a..de8779b7a 100644
--- a/src/usr/diag/prdf/plat/p9/prdfP9Mcbist.C
+++ b/src/usr/diag/prdf/plat/p9/prdfP9Mcbist.C
@@ -54,6 +54,18 @@ namespace p9_mcbist
#ifndef __HOSTBOOT_RUNTIME
/**
+ * @brief Plugin that initializes the data bundle.
+ * @param i_mcbChip An MCBIST chip.
+ * @return SUCCESS
+ */
+int32_t Initialize( ExtensibleChip * i_mcbChip )
+{
+ i_mcbChip->getDataBundle() = new McbistDataBundle( i_mcbChip );
+ return SUCCESS;
+}
+PRDF_PLUGIN_DEFINE( p9_mcbist, Initialize );
+
+/**
* @brief Plugin function called after analysis is complete but before PRD
* exits.
* @param i_mcbChip An MCBIST chip.
OpenPOWER on IntegriCloud