diff options
| author | Prachi Gupta <pragupta@us.ibm.com> | 2018-05-04 08:53:05 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-05-07 11:51:15 -0400 |
| commit | 3c73a7c369ce2eebdd53c7672aceddd48d436b3f (patch) | |
| tree | 624964774103c524d35f43e843c1d5c2cc275ec4 /src/include | |
| parent | 1af47d2a9aef6d4cb5144cc4c219e58f15eedce3 (diff) | |
| download | talos-hostboot-3c73a7c369ce2eebdd53c7672aceddd48d436b3f.tar.gz talos-hostboot-3c73a7c369ce2eebdd53c7672aceddd48d436b3f.zip | |
wrap test: Use MNFG_FLAGS instead of compile time flag
Change-Id: I347075dd2424ee8b96805456b3d7d9962f428b64
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58347
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/usr/initservice/initserviceif.H | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/usr/initservice/initserviceif.H b/src/include/usr/initservice/initserviceif.H index d2d61c4bd..c30570324 100644 --- a/src/include/usr/initservice/initserviceif.H +++ b/src/include/usr/initservice/initserviceif.H @@ -176,6 +176,24 @@ inline bool spBaseServicesEnabled() return spBaseServicesEnabled; } +/** + * @brief Returns if we are in smp wrap config + * + * If true then we are running in wrap config + * + * @return bool - true if wrap config, else false + */ +inline bool isSMPWrapConfig() +{ + TARGETING::Target * sys {nullptr}; + TARGETING::targetService().getTopLevelTarget( sys ); + TARGETING::ATTR_MNFG_FLAGS_type mnfg_flags; + return + ( sys && + sys->tryGetAttr<TARGETING::ATTR_MNFG_FLAGS>(mnfg_flags) && + (mnfg_flags & TARGETING::MNFG_FLAG_BRAZOS_WRAP_CONFIG)) ; + +} /** * @brief Save Istep Step and Substep for use by error logging |

