summaryrefslogtreecommitdiffstats
path: root/src/sbefw/core/sbeirqregistersave.H
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2017-10-08 22:57:25 -0500
committerJennifer A. Stofer <stofer@us.ibm.com>2018-01-18 13:32:44 -0500
commitc68fb43ecf21c311d912b89dbc0f55d49ec78bc4 (patch)
tree309236837d97f0f7f936d1ad9dc7d4588f8a5e40 /src/sbefw/core/sbeirqregistersave.H
parent26dd5796f9f694e9c75008fd7b6018c7de8ea44b (diff)
downloadtalos-sbe-c68fb43ecf21c311d912b89dbc0f55d49ec78bc4.tar.gz
talos-sbe-c68fb43ecf21c311d912b89dbc0f55d49ec78bc4.zip
PPE Registers to be saved-off in the interrupt context
Change-Id: I90b9b21957bb58ab7e1ed1802d8723dcf4b05b6f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48094 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> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'src/sbefw/core/sbeirqregistersave.H')
-rw-r--r--src/sbefw/core/sbeirqregistersave.H68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/sbefw/core/sbeirqregistersave.H b/src/sbefw/core/sbeirqregistersave.H
new file mode 100644
index 00000000..0fe2fc79
--- /dev/null
+++ b/src/sbefw/core/sbeirqregistersave.H
@@ -0,0 +1,68 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/sbefw/core/sbeirqregistersave.H $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2017,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 */
+/*
+ * $file: ppe/sbe/sbefw/sbeirqregistersave.H
+ *
+ * @brief This file contains structs of registers to be saved during interrupt
+ * contxt.
+ */
+
+#ifndef _SBE_IRQ_REGISTER_SAVE_H
+#define _SBE_IRQ_REGISTER_SAVE_H
+
+/**
+ * @brief Register Save Structure
+ * Total of 4 * 9 = 36Bytes of Data
+ */
+typedef struct registersave
+{
+ uint32_t version:16; // Structure Versioning, won't change unless,
+ // there is change in this structure
+ uint32_t magicbyte:8; // Magic byte for address validation (0xA5) in SPRG0
+
+ // Valid Byte, if the Register below could be saved off
+ uint32_t validbyte:8; // One byte for all the registers below
+
+ // Registers to be saved off
+ uint32_t register_SRR0;
+ uint32_t register_SRR1;
+ uint32_t register_ISR;
+ uint32_t register_FI2C_CONFIG_LOWER_32BITS;
+ uint32_t register_FI2C_CONFIG_UPPER_32BITS;
+ uint32_t register_FI2C_STAT_LOWER_32BITS;
+ uint32_t register_FI2C_STAT_UPPER_32BITS;
+ uint32_t register_LR;
+
+ // Default Constructor to initialize
+ registersave()
+ {
+ version = 0;
+ magicbyte = 0;
+ validbyte = 0;
+ }
+}registersave_t;
+
+extern registersave_t __g_register_save_addr;
+#endif //_SBE_IRQ_REGISTER_SAVE_H
OpenPOWER on IntegriCloud