Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Raja Das
authored and
Jennifer A. Stofer
committed
Jan 18, 2018
1 parent
26dd579
commit c68fb43
Showing
5 changed files
with
177 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |