diff options
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.mk | 3 | ||||
-rw-r--r-- | src/import/chips/p9/xip/fapi_sbe_common.H | 60 | ||||
-rw-r--r-- | src/import/chips/p9/xip/p9_xip_image.h | 8 | ||||
-rw-r--r-- | src/import/chips/p9/xip/p9_xip_image.mk | 5 |
4 files changed, 9 insertions, 67 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.mk b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.mk index 47ac49d9a..728c35ea5 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.mk +++ b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.mk @@ -20,6 +20,7 @@ PROCEDURE=p9_hcode_image_build HCODE_UTIL=$(ROOTPATH)/chips/p9/procedures/utils/stopreg/ HCODE_UTIL+=$(ROOTPATH)/chips/p9/xip/ HCODE_UTIL+=$(ROOTPATH)/chips/p9/procedures/hwp/lib/ -libp9_hcode_image_build_DEPLIBS += p9_xip_image +HCODE_UTIL+=$(ROOTPATH)/tools/imageProcs/ +$(PROCEDURE)_DEPLIBS+=p9_xip_image $(call ADD_MODULE_INCDIR,$(PROCEDURE),$(HCODE_UTIL)) $(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/xip/fapi_sbe_common.H b/src/import/chips/p9/xip/fapi_sbe_common.H deleted file mode 100644 index d125eeade..000000000 --- a/src/import/chips/p9/xip/fapi_sbe_common.H +++ /dev/null @@ -1,60 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: chips/p9/xip/fapi_sbe_common.H $ */ -/* */ -/* IBM CONFIDENTIAL */ -/* */ -/* EKB Project */ -/* */ -/* COPYRIGHT 2015,2016 */ -/* [+] International Business Machines Corp. */ -/* */ -/* */ -/* 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. */ -/* */ -/* IBM_PROLOG_END_TAG */ - -/// \file fapi_sbe_common.H -/// \brief provides several preprocessor macros used functions in fixed secion. -/// -/// Several preprocessor macros are required to have different definitions in -/// C, C++ and SBE assembly procedures. These common forms are collected here. - -#ifndef __FAPI_SBE_COMMON_H -#define __FAPI_SBE_COMMON_H - -/// Several preprocessor macros are required to have different definitions in -/// C, C++ and SBE assembly procedures. These common forms are collected here. - -#if defined __ASSEMBLER__ - - #define CONST_UINT8_T(name, expr) .set name, (expr) - #define CONST_UINT32_T(name, expr) .set name, (expr) - #define CONST_UINT64_T(name, expr) .set name, (expr) - - #define ULL(x) x - -#elif defined __cplusplus - - #include <stdint.h> - - #define CONST_UINT8_T(name, expr) const uint8_t name = (expr); - #define CONST_UINT32_T(name, expr) const uint32_t name = (expr); - #define CONST_UINT64_T(name, expr) const uint64_t name = (expr); - - #define ULL(x) x##ull - -#else // C code - - // CONST_UINT[8,3,64]_T() can't be used in C code/headers; Use - // - // #define <symbol> <value> [ or ULL(<value>) for 64-bit constants - - #define ULL(x) x##ull - -#endif // __ASSEMBLER__ - -#endif // __FAPI_SBE_COMMON_H diff --git a/src/import/chips/p9/xip/p9_xip_image.h b/src/import/chips/p9/xip/p9_xip_image.h index 6c9ff69db..6f00e92c2 100644 --- a/src/import/chips/p9/xip/p9_xip_image.h +++ b/src/import/chips/p9/xip/p9_xip_image.h @@ -29,8 +29,6 @@ #ifndef __P9_XIP_IMAGE_H #define __P9_XIP_IMAGE_H -#include "fapi_sbe_common.H" - /// Current version (fields, layout, sections) of the P9_XIP header /// /// If any changes are made to this file or to p9_xip_header.H, please update @@ -46,6 +44,12 @@ /// /// @{ +#ifdef __ASSEMBLER__ + #define ULL(x) x +#else + #define ULL(x) x##ull +#endif + #define P9_XIP_MAGIC 0x58495020 // "XIP " #define P9_XIP_MAGIC_BASE ULL(0x5849502042415345) // "XIP BASE" #define P9_XIP_MAGIC_SEEPROM ULL(0x584950205345504d) // "XIP SEPM" diff --git a/src/import/chips/p9/xip/p9_xip_image.mk b/src/import/chips/p9/xip/p9_xip_image.mk index f4534cdbd..004534e82 100644 --- a/src/import/chips/p9/xip/p9_xip_image.mk +++ b/src/import/chips/p9/xip/p9_xip_image.mk @@ -16,10 +16,7 @@ # deposited with the U.S. Copyright Office. # # IBM_PROLOG_END_TAG - PROCEDURE = p9_xip_image - -lib$(PROCEDURE)_COMMONFLAGS = -DDEBUG_P9_XIP_IMAGE=1 - +lib$(PROCEDURE)_COMMONFLAGS += -DDEBUG_P9_XIP_IMAGE=1 $(call BUILD_PROCEDURE) |