summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-02-12 14:23:43 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-02-22 10:58:23 -0600
commit418917bfca616647aa9843a2e926938ec6ffb3cf (patch)
tree09aeb870db6a4856655fbd75177522b33b6d4397 /src/import/hwpf/fapi2
parentd2888648902ed9034c5a5d58e1261d361f2964c4 (diff)
downloadblackbird-hostboot-418917bfca616647aa9843a2e926938ec6ffb3cf.tar.gz
blackbird-hostboot-418917bfca616647aa9843a2e926938ec6ffb3cf.zip
Put in a #ifndef flag in because HB doesnt support TLS
Because HB has a bug in our TLS code that will take some time to resolve we have placed a temporary flag in this file so that HB can build without needed an extra cherry pick Change-Id: Ie9c878f819bbd2c270df3fe9a09bf696d024bb73 RTC:146805 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24277 Tested-by: Jenkins Server Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24544 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2')
-rw-r--r--src/import/hwpf/fapi2/include/return_code.H9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/import/hwpf/fapi2/include/return_code.H b/src/import/hwpf/fapi2/include/return_code.H
index 2e1f0bf96..5ff02feb9 100644
--- a/src/import/hwpf/fapi2/include/return_code.H
+++ b/src/import/hwpf/fapi2/include/return_code.H
@@ -136,9 +136,16 @@ class ReturnCode : public FirstFailureData<ReturnCode>
/// This implementation assumes no exception handling and leverages thread-local
/// storage. For platforms without thread support, a global variable will
/// suffice for the error state.
-extern thread_local ReturnCode current_err; /// the current error state
+
+
extern thread_local uint64_t pib_error_mask; /// the pib mask
extern thread_local uint64_t operational_state; /// the operational mode
+#ifndef PLAT_NO_THREAD_LOCAL_STORAGE
+ extern thread_local ReturnCode current_err; /// the current error state
+#else
+ extern ReturnCode current_err;
+#endif
+
}
#endif
OpenPOWER on IntegriCloud