summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
Diffstat (limited to 'src/import')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.C8
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.H7
2 files changed, 13 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.C b/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.C
index ad7a80941..9360c2e11 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.C
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.C
@@ -42,7 +42,13 @@ namespace mss
{
// Thread local storage for the string we're going to create.
-thread_local char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+//TODO RTC:153924 Remove the else case when issue is resolved
+#ifndef PLAT_NO_THREAD_LOCAL_STORAGE
+ thread_local char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+#else
+ char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+#endif
+
template<>
const char* c_str( const fapi2::template Target<fapi2::TARGET_TYPE_DIMM>& i_target )
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.H b/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.H
index 0b6263dc4..6c6532b9c 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/utils/c_str.H
@@ -36,7 +36,12 @@ namespace mss
{
// Thread local storage for the string we're going to create.
-extern thread_local char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+//TODO RTC:153924 Remove the else case when issue is resolved
+#ifndef PLAT_NO_THREAD_LOCAL_STORAGE
+ extern thread_local char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+#else
+ extern char c_str_storage[fapi2::MAX_ECMD_STRING_LEN];
+#endif
template< fapi2::TargetType T >
const char* c_str( const fapi2::template Target<T>& i_target )
OpenPOWER on IntegriCloud