diff options
Diffstat (limited to 'src/usr/runtime/hdatservice.C')
| -rw-r--r-- | src/usr/runtime/hdatservice.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/runtime/hdatservice.C b/src/usr/runtime/hdatservice.C index 27641b08c..82aef4630 100644 --- a/src/usr/runtime/hdatservice.C +++ b/src/usr/runtime/hdatservice.C @@ -1576,6 +1576,23 @@ errlHndl_t get_instance_count(const SectionId i_section, }; +void hdatMsVpdRhbAddrRange_t::set(const HDAT::hdatMsVpdRhbAddrRangeType i_type, + const uint16_t i_rangeId, + const uint64_t i_startAddr, + const uint64_t i_size, + const char* i_label) +{ + assert(i_label != nullptr, "Null label for hdatMsVpdRhbAddrRange_t"); + + hdatRhbRngType = i_type; + hdatRhbRngId = i_rangeId; + hdatRhbAddrRngStrAddr = i_startAddr; + hdatRhbAddrRngEndAddr = (i_startAddr + i_size - 1); + hdatRhbLabelSize = strlen(i_label) + 1; + memset(hdatRhbLabelString, 0, hdatRhbLabelSize); + memcpy(hdatRhbLabelString, i_label, hdatRhbLabelSize); +} + /******************** Private/Protected Methods ********************/ |

