summaryrefslogtreecommitdiffstats
path: root/src/sbefw/app/power/sbearchregdump.H
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2018-05-25 00:14:45 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2018-08-14 08:49:11 -0500
commit4a2a88ff80811d061f55b7c7758781cc84edbc04 (patch)
tree9763563a86f6365e8fc3221ede09543ff7672063 /src/sbefw/app/power/sbearchregdump.H
parent3163363f9b24de944cf1450436e6d676de407aba (diff)
downloadtalos-sbe-4a2a88ff80811d061f55b7c7758781cc84edbc04.tar.gz
talos-sbe-4a2a88ff80811d061f55b7c7758781cc84edbc04.zip
[SBE-ARCH2] Format register dump and SBE Capturing the Data
1. Format of the register dump by SBE on the Host Memory (Interface) 2. SBE Capturing the architected state for all cores/threads and dumping it out in the hostboot reserved area. Change-Id: I80be7e3fa18679aa29aa2cda92eebbf85ce02fca Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/59372 Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/sbefw/app/power/sbearchregdump.H')
-rw-r--r--src/sbefw/app/power/sbearchregdump.H44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/sbefw/app/power/sbearchregdump.H b/src/sbefw/app/power/sbearchregdump.H
new file mode 100644
index 00000000..d83eb738
--- /dev/null
+++ b/src/sbefw/app/power/sbearchregdump.H
@@ -0,0 +1,44 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/sbefw/app/power/sbearchregdump.H $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2018 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+
+#ifndef __SBEFW_ARCHREGDUMP_H
+#define __SBEFW_ARCHREGDUMP_H
+
+#include <stdint.h>
+#include "fapi2.H"
+
+/**
+ * @brief This function dumps all the SPRs/GPRs associated with proc's core
+ * in a location provided by Hostboot's stash addr. Internally this method
+ * takes care if ramming is possible for a core-thread for spr/gpr read and
+ * dump the same in the format agreed via PBA
+ *
+ * @param[in] void
+ *
+ * @return FAPI2_RC_SUCCESS if success, else error code
+ */
+fapi2::ReturnCode sbeDumpArchRegs(void);
+
+#endif /* __SBEFW_ARCHREGDUMP_H */
OpenPOWER on IntegriCloud