summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/attrsync.C
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2012-11-27 13:59:43 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-02-08 10:37:00 -0600
commite25073a5222d236cc8bec3bb111ec3d7ab7a1575 (patch)
treecfc6ebf3237b16ffc2fc52c5b16f3c51f1f0b149 /src/usr/targeting/attrsync.C
parent74c20caefdab7f7aa9268dd3f359f2038cee8ccf (diff)
downloadblackbird-hostboot-e25073a5222d236cc8bec3bb111ec3d7ab7a1575.tar.gz
blackbird-hostboot-e25073a5222d236cc8bec3bb111ec3d7ab7a1575.zip
Sync attributes from hostboot to fsp after each istep
Code will sync targeting attributes in single step mode if the ATTR_SYNC_BETWEEN_STEPS is overriden in FspOverideAttrs.txt in the FSP nfs/hwpf dir Change-Id: Ifd7603bb7ce75a9ae7b5df5ac1c605916ba63aab RTC: 46672 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2978 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/attrsync.C')
-rw-r--r--src/usr/targeting/attrsync.C56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/usr/targeting/attrsync.C b/src/usr/targeting/attrsync.C
index ca5da0140..4dd43cc55 100644
--- a/src/usr/targeting/attrsync.C
+++ b/src/usr/targeting/attrsync.C
@@ -1,26 +1,25 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/usr/targeting/attrsync.C $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/targeting/attrsync.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
#include <targeting/attrsync.H>
#include <targeting/common/targreasoncodes.H>
#include <targeting/common/trace.H>
@@ -64,7 +63,7 @@ namespace TARGETING
iv_section_to_sync = i_section_to_sync;
- do{
+ do{
// set up the pointers to the data area
getSectionData();
@@ -89,12 +88,12 @@ namespace TARGETING
msg->extra_data = malloc( PAGESIZE );
// copy the attributes from mem to our buffer.
- memcpy( msg->extra_data,
+ memcpy( msg->extra_data,
iv_pages[iv_current_page].dataPtr, PAGESIZE );
- TRACFCOMP(g_trac_targeting,
+ TRACFCOMP(g_trac_targeting,
"syncSectionToFsp() - copy %d bytes from %p to %p",
- PAGESIZE, iv_pages[iv_current_page].dataPtr,
+ PAGESIZE, iv_pages[iv_current_page].dataPtr,
msg->extra_data);
// mailbox code will free both the msg and the extra data
@@ -109,7 +108,8 @@ namespace TARGETING
}
- if( l_errl == NULL )
+ // if there was no error and there was data to send
+ if(( l_errl == NULL ) && ( iv_total_pages != 0 ))
{
// tell fsp to commit the last section of data we sent
l_errl = sendSyncCompleteMessage();
OpenPOWER on IntegriCloud