diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2017-03-07 09:03:17 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-03-08 17:48:03 -0500 |
commit | e7b1c8518656917f5202f069165d21aafd7a88ad (patch) | |
tree | d64c6249d5bd59da1a76fc66060f28b6eae335c9 /src/include/util | |
parent | 24754646d5045981326ce26a878c16c6973e2ac8 (diff) | |
download | talos-hostboot-e7b1c8518656917f5202f069165d21aafd7a88ad.tar.gz talos-hostboot-e7b1c8518656917f5202f069165d21aafd7a88ad.zip |
Add a global to track when targeting has been loaded
This commit adds a global that keeps track of when targeting has
loaded along with functions to get and set this global.
Change-Id: Iddd65018918089163ebc03f042bfdd1bed31e730
RTC:165205
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37595
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r-- | src/include/util/misc.H | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/util/misc.H b/src/include/util/misc.H index 1c7aa7d5f..78d17f591 100644 --- a/src/include/util/misc.H +++ b/src/include/util/misc.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2017 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -34,6 +36,25 @@ namespace Util * @return bool true if running in simics; otherwise false */ bool isSimicsRunning( void ); + + /** + * @brief Determines if Targeting code has been loaded + * + * @param[in] void + * + * @return bool true if Targeting is loaded; otherwise false + */ + bool isTargetingLoaded( void ); + + /** + * @brief Sets global that Targeting code has been loaded + * NOTE: this should only be called once by targeting + * + * @param[in] void + * + * @return N/A + */ + void setIsTargetingLoaded( void ); }; #endif |