diff options
author | Corey Swenson <cswenson@us.ibm.com> | 2013-04-29 04:30:27 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-05-06 15:35:52 -0500 |
commit | 13a771a926e662db5ecb9141debf977bd6bbd3fa (patch) | |
tree | ddab6f5b6557906caf98b82a92074b7d6fceef40 /src/usr/runtime/populate_attributes.C | |
parent | 76503bffd0fa23e3d81f1b4f6a208ffcfa380f57 (diff) | |
download | talos-hostboot-13a771a926e662db5ecb9141debf977bd6bbd3fa.tar.gz talos-hostboot-13a771a926e662db5ecb9141debf977bd6bbd3fa.zip |
Add attribute IBSCOM_PROC_BASE_ADDR
Change-Id: I97100bcc301dca00108aa5fac68a02069883d8d5
RTC: 67827
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4260
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/runtime/populate_attributes.C')
-rw-r--r-- | src/usr/runtime/populate_attributes.C | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/usr/runtime/populate_attributes.C b/src/usr/runtime/populate_attributes.C index 19d3d7d07..961628dc2 100644 --- a/src/usr/runtime/populate_attributes.C +++ b/src/usr/runtime/populate_attributes.C @@ -112,7 +112,7 @@ TRAC_INIT(&g_trac_runtime, "RUNTIME", KILOBYTE); (*_num_attr)++; } /** - * @brief Read the PHYS_PATH attribute from targeting and stick it into mainstore + * @brief Read the ECMD_STRING attribute from targeting and stick it into mainstore */ #define ADD_ECMD_STRING() \ { const char* estring = _target->toEcmdString(); \ @@ -124,7 +124,22 @@ TRAC_INIT(&g_trac_runtime, "RUNTIME", KILOBYTE); _output_ptr += _cur_header->sizeBytes; \ (*_num_attr)++; } -//void Target::toString(char (&o_ecmdString)[MAX_ECMD_STRING_LEN]) const +/** + * @brief Read the IBSCOM_BASE attribute from targeting + * and stick it into mainstore + */ +#define ADD_IBSCOM_BASE(__targ) \ + { TARGETING::AttributeTraits \ + <TARGETING::ATTR_IBSCOM_PROC_BASE_ADDR>::Type ibscomBase; \ + _rc = !(__targ->tryGetAttr \ + <TARGETING::ATTR_IBSCOM_PROC_BASE_ADDR>(ibscomBase)); \ + _cur_header = &(_all_headers[(*_num_attr)]); \ + _cur_header->id = HSVC_IBSCOM_BASE; \ + _cur_header->sizeBytes = sizeof(uint64_t); \ + _cur_header->offset = (_output_ptr - _beginning); \ + memcpy( _output_ptr, &ibscomBase, _cur_header->sizeBytes ); \ + _output_ptr += _cur_header->sizeBytes; \ + (*_num_attr)++; } /** * @brief Insert a terminator into the attribute list @@ -408,6 +423,7 @@ errlHndl_t populate_node_attributes( uint64_t i_nodeNum ) ADD_HUID( (all_procs[p]) ); // for debug ADD_PHYS_PATH( (all_procs[p]) ); ADD_ECMD_STRING(); + ADD_IBSCOM_BASE( (all_procs[p]) ); // Use a generated file for the list of attributes to load #include "common/hsvc_procdata.C" |