diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2013-07-16 11:13:11 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-30 16:43:06 -0500 |
| commit | 12ff45d42b4fa04bdbf36ed36147b5c07e36939f (patch) | |
| tree | 2d675ac72aa7f74745c2653bad7a2e26ecbc791d /src/usr/runtime/errlud_hdat.C | |
| parent | b24fe45bee8160d77f130161267ba5a575098a77 (diff) | |
| download | blackbird-hostboot-12ff45d42b4fa04bdbf36ed36147b5c07e36939f.tar.gz blackbird-hostboot-12ff45d42b4fa04bdbf36ed36147b5c07e36939f.zip | |
Support SPIRA-H HDAT Format
Change-Id: If87eedf15c1ef96ea00c1a5574ad1f6b72e697b5
RTC: 71881
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5498
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/runtime/errlud_hdat.C')
| -rw-r--r-- | src/usr/runtime/errlud_hdat.C | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/src/usr/runtime/errlud_hdat.C b/src/usr/runtime/errlud_hdat.C new file mode 100644 index 000000000..72d024f0e --- /dev/null +++ b/src/usr/runtime/errlud_hdat.C @@ -0,0 +1,119 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/runtime/errlud_hdat.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ +/** + * @file errlud_hdat.C + * + * @brief Implementation of classes to log and parse various HDAT structures + */ +#include "errlud_hdat.H" +#include <runtime/runtime_reasoncodes.H> +#include <string.h> +#include "hdatstructs.H" +#include <sys/mm.h> + +namespace RUNTIME +{ + +//------------------------------------------------------------------------------ +// NACA +//------------------------------------------------------------------------------ +UdNaca::UdNaca(hdatNaca_t* i_naca) +{ + if( 0 == mm_virt_to_phys(reinterpret_cast<void*>(i_naca)) ) + { + return; + } + + char * l_pBuf = reinterpret_cast<char *>( + reallocUsrBuf(sizeof(hdatNaca_t))); + memcpy(l_pBuf, i_naca, sizeof(hdatNaca_t)); + + // Set up Ud instance variables + iv_CompId = RUNTIME_COMP_ID; + iv_Version = 1; + iv_SubSection = RUNTIME_UDT_NACA; +} + +//------------------------------------------------------------------------------ +UdNaca::~UdNaca() +{ + +} + + +//------------------------------------------------------------------------------ +// SPIRA +//------------------------------------------------------------------------------ +UdSpira::UdSpira(hdatSpira_t* i_spira) +{ + if( 0 == mm_virt_to_phys(reinterpret_cast<void*>(i_spira)) ) + { + return; + } + + char * l_pBuf = reinterpret_cast<char *>( + reallocUsrBuf(sizeof(hdatSpira_t))); + memcpy(l_pBuf, i_spira, sizeof(hdatSpira_t)); + + // Set up Ud instance variables + iv_CompId = RUNTIME_COMP_ID; + iv_Version = 1; + iv_SubSection = RUNTIME_UDT_SPIRA; +} + +//------------------------------------------------------------------------------ +UdSpira::~UdSpira() +{ + +} + + +//------------------------------------------------------------------------------ +// Tuple +//------------------------------------------------------------------------------ +UdTuple::UdTuple(hdat5Tuple_t* i_tuple) +{ + if( 0 == mm_virt_to_phys(reinterpret_cast<void*>(i_tuple)) ) + { + return; + } + + char * l_pBuf = reinterpret_cast<char *>( + reallocUsrBuf(sizeof(hdat5Tuple_t))); + memcpy(l_pBuf, i_tuple, sizeof(hdat5Tuple_t)); + + // Set up Ud instance variables + iv_CompId = RUNTIME_COMP_ID; + iv_Version = 1; + iv_SubSection = RUNTIME_UDT_TUPLE; +} + +//------------------------------------------------------------------------------ +UdTuple::~UdTuple() +{ + +} + + +} + |

