summaryrefslogtreecommitdiffstats
path: root/src/usr/util/runtime
diff options
context:
space:
mode:
authorDonald Washburn <dwashbur@us.ibm.com>2017-07-25 08:42:11 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-24 15:53:30 -0400
commitd93a520bdb774eefa74839aa124789516999b587 (patch)
tree7b34d79e74c91693ff6114735c0a75596b072cae /src/usr/util/runtime
parent24eb981a9b4e452fd59d82136000adb6e0d16f2a (diff)
downloadtalos-hostboot-d93a520bdb774eefa74839aa124789516999b587.tar.gz
talos-hostboot-d93a520bdb774eefa74839aa124789516999b587.zip
Implemented SBE Passthrough for Attribute Override.
*Wrote a runtime SBE pass-through function to invoke the runtime apply_attribute_overrides function. The caller is required to place the request data in the SBE COMMS reserved memory area and invoke the sbe_message_passing function. The request data consists of an sbeMessage_t header followed by binary override data which can be obtained from the attributeOverride tool. Upon completion of the sbe_message_passing function, the respose data will be written to the SBE COMMS AREA. *Added support for accessing system attributes at runtime. RTC: 152409 Change-Id: Ieed3e026350cc272e6268e7802971551d3f39ed4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44311 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/util/runtime')
-rw-r--r--src/usr/util/runtime/rt_cmds.C12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/util/runtime/rt_cmds.C b/src/usr/util/runtime/rt_cmds.C
index b415b7322..3984f9f8f 100644
--- a/src/usr/util/runtime/rt_cmds.C
+++ b/src/usr/util/runtime/rt_cmds.C
@@ -125,7 +125,17 @@ void cmd_getattr( char*& o_output,
UTIL_FT( "cmd_getattr> huid=%.8X, attr=%.8X, size=%d",
i_huid, i_attrId, i_size );
- TARGETING::Target* l_targ = getTargetFromHUID(i_huid);
+ TARGETING::Target* l_targ{};
+
+ if(0xFFFFFFFF == i_huid)
+ {
+ TARGETING::targetService().getTopLevelTarget(l_targ);
+ }
+ else
+ {
+ l_targ = getTargetFromHUID(i_huid);
+ }
+
if( l_targ == NULL )
{
o_output = new char[100];
OpenPOWER on IntegriCloud