diff options
author | Corey Swenson <cswenson@us.ibm.com> | 2013-05-29 12:41:40 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-10 16:22:56 -0500 |
commit | 3837a7143776c6ea55fcda737e3425860c75a28c (patch) | |
tree | beb0237c0d0853724a05ab77adb062915a89c82a /src/usr/hwpf/plat | |
parent | b035c67e8f54336b31b5586f6f92ca7aba0fa130 (diff) | |
download | talos-hostboot-3837a7143776c6ea55fcda737e3425860c75a28c.tar.gz talos-hostboot-3837a7143776c6ea55fcda737e3425860c75a28c.zip |
FAPI updates from HostServices
Change-Id: I0d8f0fb43ead61a8a37f7f9ca7be12efec09e144
RTC: 52953
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4738
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat')
-rw-r--r-- | src/usr/hwpf/plat/fapiPlatTarget.C | 19 | ||||
-rw-r--r-- | src/usr/hwpf/plat/fapiPlatUtil.C | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatTarget.C b/src/usr/hwpf/plat/fapiPlatTarget.C index bff705233..01b4f03f7 100644 --- a/src/usr/hwpf/plat/fapiPlatTarget.C +++ b/src/usr/hwpf/plat/fapiPlatTarget.C @@ -38,6 +38,7 @@ #include <fapiTarget.H> #include <fapiPlatTrace.H> +#include <fapiUtil.H> #include <targeting/common/attributes.H> #include <string.h> @@ -73,6 +74,24 @@ void Target::deleteHandle() } //****************************************************************************** +// Get the ecmd-format string +//****************************************************************************** +const char * Target::toEcmdString() const +{ + if (iv_pEcmdString == NULL) + { + iv_pEcmdString = reinterpret_cast<char(*)>( + fapiMalloc(fapi::MAX_ECMD_STRING_LEN * sizeof(char))); + char (&l_ecmdString)[fapi::MAX_ECMD_STRING_LEN] = + *(reinterpret_cast<char(*)[fapi::MAX_ECMD_STRING_LEN]> + (iv_pEcmdString)); + toString(l_ecmdString); + } + + return iv_pEcmdString; +} + +//****************************************************************************** // Get the ECMD String //****************************************************************************** void Target::toString(char (&o_ecmdString)[MAX_ECMD_STRING_LEN]) const diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C index ae447881a..1b8575c9e 100644 --- a/src/usr/hwpf/plat/fapiPlatUtil.C +++ b/src/usr/hwpf/plat/fapiPlatUtil.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ |