diff options
author | Prem Shanker Jha <premjha2@in.ibm.com> | 2014-08-07 09:45:52 +0530 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-11-17 09:57:08 -0600 |
commit | c4c66663c507ebb8a1bbe16faf2f0525a6baf9cc (patch) | |
tree | 305cdce39825d74cb317bbca4d194fbda52d7cf6 /src | |
parent | 95da7d69e4fca4ade64867c27f5bd8b50f9454fc (diff) | |
download | talos-hostboot-c4c66663c507ebb8a1bbe16faf2f0525a6baf9cc.tar.gz talos-hostboot-c4c66663c507ebb8a1bbe16faf2f0525a6baf9cc.zip |
PRD:Added LITTLE_ENDIAN macro to enable PRDF for little endian machine.
RTC:110597
Change-Id: I70c500ac61cffe252343681222309d8f61354856
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12778
Tested-by: Jenkins Server
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14486
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/diag/prdf/common/plat/pegasus/prdfCenAddress.H | 6 | ||||
-rw-r--r-- | src/usr/diag/prdf/common/plugins/prdfMemoryMruData.H | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/common/plat/pegasus/prdfCenAddress.H b/src/usr/diag/prdf/common/plat/pegasus/prdfCenAddress.H index 27e5b1972..521e941cf 100755 --- a/src/usr/diag/prdf/common/plat/pegasus/prdfCenAddress.H +++ b/src/usr/diag/prdf/common/plat/pegasus/prdfCenAddress.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -126,7 +128,7 @@ class CenRank struct { - #ifndef ESW_SIM_COMPILE + #if !( __BYTE_ORDER == __LITTLE_ENDIAN ) union { struct { uint8_t unused : 5; uint8_t ds : 1; uint8_t rs : 2; } s; diff --git a/src/usr/diag/prdf/common/plugins/prdfMemoryMruData.H b/src/usr/diag/prdf/common/plugins/prdfMemoryMruData.H index 47458e9d5..7a0dc9878 100644 --- a/src/usr/diag/prdf/common/plugins/prdfMemoryMruData.H +++ b/src/usr/diag/prdf/common/plugins/prdfMemoryMruData.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -85,7 +87,8 @@ union MemMruMeld // version field so that the error log parser know which format to // used. -#ifndef ESW_SIM_COMPILE +#if !( __BYTE_ORDER == __LITTLE_ENDIAN ) + uint32_t valid : 1; ///< Used to indicate nothing failed while ///< building the object (1=valid, 0=not valid) uint32_t procPos : 3; ///< Proc position within node (0-7) |