diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2017-05-05 11:03:17 -0500 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2017-05-12 21:20:13 -0400 |
commit | 2718fd2c8746f4391e8a252dfc29484396a0f1e9 (patch) | |
tree | 77178921e8a4651b9a0559a76ea06009e4709d66 /src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H | |
parent | bc30c5b420fb71ac5fe36251f192545d3442e817 (diff) | |
download | talos-hostboot-2718fd2c8746f4391e8a252dfc29484396a0f1e9.tar.gz talos-hostboot-2718fd2c8746f4391e8a252dfc29484396a0f1e9.zip |
Fixes required to build P9 STOP API with skiboot
This commit contains code changes which are needed to build
P9 STOP API for skiboot/opal firmware.
Fixes are mostly around detecting skiboot environment using
__SKIBOOT__ and including files required for the build.
Fixes related to using C compiler instead of C++
Fixes related to mixed code and declaration and other compiler error/warnings
Resolves #100
Change-Id: I49b0cb5918373c0b1a0e795fded2d245bf2aa3f7
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40151
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Stuart Z. Jacobs <sjacobs@us.ibm.com>
Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com>
Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40155
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H')
-rwxr-xr-x | src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H b/src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H index 468bb741f..3266fdefe 100755 --- a/src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H +++ b/src/import/chips/p9/procedures/hwp/lib/p9_stop_util.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -27,6 +27,8 @@ #ifdef _AIX #define __BYTE_ORDER __BIG_ENDIAN +#elif __SKIBOOT__ + #include <skiboot.h> #else #include <endian.h> #endif @@ -49,8 +51,10 @@ // *HWP Level : 2 // *HWP Consumed by : HB:HYP #ifndef __PPE_PLAT +#ifdef __cplusplus namespace stopImageSection { +#endif #endif //__PPE_PLAT /** * @brief helper function to swizzle given input data @@ -131,9 +135,10 @@ StopReturnCode_t getCoreAndThread( void* const i_pStopImage, const uint64_t i_pir, uint32_t* o_coreId, uint32_t* o_threadId ); - +#ifdef __cplusplus } // namespace stopImageSection ends +#endif #endif //__PPE_PLAT #endif |