diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2015-12-17 10:10:47 -0600 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:42 -0600 |
commit | b742fd9b5b3c07129abfa3c099655346f6b1e6a6 (patch) | |
tree | f3e3bd027ac048911296cd75b66e06efa0ea2519 /src/usr/pnor/ecc.C | |
parent | 6b3144d3d653cfb3d14cb74598b003cc7c653c73 (diff) | |
download | talos-hostboot-b742fd9b5b3c07129abfa3c099655346f6b1e6a6.tar.gz talos-hostboot-b742fd9b5b3c07129abfa3c099655346f6b1e6a6.zip |
Hostboot Bootloader Infrastructure
New and changed code to provide bootloader infrastructure.
Changes to build bootloader and create the image file.
Change-Id: Ie400f0ca6954b86e275fd68c9462f8d18eeec98a
RTC:127211
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22856
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/ecc.C')
-rw-r--r-- | src/usr/pnor/ecc.C | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/pnor/ecc.C b/src/usr/pnor/ecc.C index fb03c0be6..7ccab7b69 100644 --- a/src/usr/pnor/ecc.C +++ b/src/usr/pnor/ecc.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2016 */ +/* [+] 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. */ @@ -20,11 +22,13 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ +#ifndef bl_pnor_ecc_C #include <stdio.h> #include <endian.h> #include <assert.h> #include <pnor/ecc.H> +#endif namespace PNOR { @@ -168,6 +172,7 @@ namespace ECC return badBit; } +#ifndef bl_pnor_ecc_C void injectECC(const uint8_t* i_src, size_t i_srcSz, uint8_t* o_dst) { @@ -187,6 +192,7 @@ namespace ECC o_dst[o + sizeof(uint64_t)] = ecc; } } +#endif eccStatus removeECC(uint8_t* io_src, uint8_t* o_dst, size_t i_dstSz) |