summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaus Michael Olsen <cmolsen@us.ibm.com>2017-08-15 16:48:29 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-20 20:39:13 -0400
commit3e8b826e82598e359b8f24bbafdf81c02fdb906e (patch)
tree2b9d166c3ee313ba88d06947af5c51e0d07d5269
parent8790540c7945c13ce75872f5a664fcd64397899b (diff)
downloadtalos-hostboot-3e8b826e82598e359b8f24bbafdf81c02fdb906e.tar.gz
talos-hostboot-3e8b826e82598e359b8f24bbafdf81c02fdb906e.zip
Fixing small inconsistency in scan_compressions.C
- Now using the correct polarity of the BE->HE call in _rs4_decompress. Change-Id: Ifb799b8d856beb3eacfc737c4489886a92c92970 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44651 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44656 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/import/chips/p9/utils/imageProcs/p9_scan_compression.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/chips/p9/utils/imageProcs/p9_scan_compression.C b/src/import/chips/p9/utils/imageProcs/p9_scan_compression.C
index 47e7fd6cf..4b898fa95 100644
--- a/src/import/chips/p9/utils/imageProcs/p9_scan_compression.C
+++ b/src/import/chips/p9/utils/imageProcs/p9_scan_compression.C
@@ -804,7 +804,7 @@ _rs4_decompress(uint8_t* io_data_str,
{
uint8_t* rs4_str = (uint8_t*)i_rs4 + sizeof(CompressedScanData);
- if (htobe16(i_rs4->iv_magic) != RS4_MAGIC)
+ if (be16toh(i_rs4->iv_magic) != RS4_MAGIC)
{
return BUG(SCAN_DECOMPRESSION_MAGIC_ERROR);
}
OpenPOWER on IntegriCloud