summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/scan/scandd.C6
-rw-r--r--src/usr/targeting/common/xmltohb/attribute_types_hb.xml14
-rw-r--r--src/usr/targeting/common/xmltohb/target_types_hb.xml2
3 files changed, 21 insertions, 1 deletions
diff --git a/src/usr/scan/scandd.C b/src/usr/scan/scandd.C
index 4ea77d0e0..4b5d891b8 100644
--- a/src/usr/scan/scandd.C
+++ b/src/usr/scan/scandd.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* COPYRIGHT International Business Machines Corp. 2011,2013 */
/* */
/* p1 */
/* */
@@ -224,6 +224,9 @@ errlHndl_t scanDoScan( DeviceFW::OperationType i_opType,
size_t op_size = sizeof(uint64_t);
uint32_t l_buffer[2]; // local scom buffer
+ mutex_t* l_mutex = i_target->getHbMutexAttr<TARGETING::ATTR_SCAN_MUTEX>();
+ mutex_lock(l_mutex);
+
do
{
@@ -647,6 +650,7 @@ errlHndl_t scanDoScan( DeviceFW::OperationType i_opType,
}
}while(0);
+ mutex_unlock(l_mutex);
return l_err;
}
diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
index 2f81d543a..208d2a5f0 100644
--- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
@@ -161,6 +161,20 @@
</attribute>
<attribute>
+ <id>SCAN_MUTEX</id>
+ <description>Mutex for SCAN operations</description>
+ <simpleType>
+ <hbmutex>
+ <default>0</default>
+ </hbmutex>
+ </simpleType>
+ <persistency>volatile-zeroed</persistency>
+ <readable/>
+ <writeable/>
+ <hbOnly/>
+</attribute>
+
+<attribute>
<id>SLW_IMAGE_ADDR</id>
<description>
Location of runtime winkle image for this processor chip.
diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml
index 05d032116..e5dfd4498 100644
--- a/src/usr/targeting/common/xmltohb/target_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml
@@ -48,6 +48,7 @@
<attribute>
<id>SCOM_IND_MUTEX</id>
</attribute>
+ <attribute><id>SCAN_MUTEX</id></attribute>
<!-- new attribute for isteps 15 & 16 -->
<attribute>
<id>SLW_IMAGE_ADDR</id>
@@ -86,6 +87,7 @@
<attribute>
<id>SCOM_IND_MUTEX</id>
</attribute>
+ <attribute><id>SCAN_MUTEX</id></attribute>
<attribute>
<id>IBSCOM_VIRTUAL_ADDR</id>
</attribute>
OpenPOWER on IntegriCloud