summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C
diff options
context:
space:
mode:
Diffstat (limited to 'import/chips/p9/procedures/utils/stopreg/p9_stop_util.C')
-rwxr-xr-ximport/chips/p9/procedures/utils/stopreg/p9_stop_util.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C b/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C
index 818fadf5..52bf6e4c 100755
--- a/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C
+++ b/import/chips/p9/procedures/utils/stopreg/p9_stop_util.C
@@ -48,13 +48,16 @@ namespace stopImageSection
* @param o_fusedMode points to fuse mode information.
* @return STOP_SAVE_SUCCESS if functions succeeds, error code otherwise.
*/
-StopReturnCode_t isFusedMode( void* const i_pImage, bool* o_fusedMode )
+static StopReturnCode_t isFusedMode( void* const i_pImage, bool* o_fusedMode )
{
- *o_fusedMode = false;
StopReturnCode_t l_rc = STOP_SAVE_SUCCESS;
+ *o_fusedMode = false;
do
{
+ HomerSection_t* pHomerDesc = ( HomerSection_t* ) i_pImage;
+ HomerImgDesc_t* pHomer = (HomerImgDesc_t*)( pHomerDesc->interrruptHandler );
+
if( !i_pImage )
{
MY_ERR( "invalid pointer to HOMER image");
@@ -62,8 +65,6 @@ StopReturnCode_t isFusedMode( void* const i_pImage, bool* o_fusedMode )
break;
}
- HomerSection_t* pHomerDesc = ( HomerSection_t* ) i_pImage;
- HomerImgDesc_t* pHomer = (HomerImgDesc_t*)( pHomerDesc->interrruptHandler );
if( SWIZZLE_8_BYTE(CPMR_MAGIC_NUMBER) != pHomer->cpmrMagicWord )
{
OpenPOWER on IntegriCloud