diff options
| author | Claus Michael Olsen <cmolsen@us.ibm.com> | 2017-05-16 05:21:33 -0500 |
|---|---|---|
| committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2017-10-23 17:48:22 -0500 |
| commit | 957f20fd3ce4f162abc4f574889021beb15fa365 (patch) | |
| tree | d46d7c73cbdb10ff04cfaf34f5421a4239e3d592 /import/chips/p9/xip | |
| parent | a3d89ba0ef782c72f049b813e09b25e45f3cedf6 (diff) | |
| download | talos-hcode-957f20fd3ce4f162abc4f574889021beb15fa365.tar.gz talos-hcode-957f20fd3ce4f162abc4f574889021beb15fa365.zip | |
xip_image: GPTR/overlays stage 1 support
Updated p9_xip_dd_section_support to return "overlays not
supported" if sectionId==.overlays is passed as arg.
Further add a small update to xip_image.C to clear the
ddSupport field in XipSection upon deleting a section.
Change-Id: If64a8a6d7046aa857bd2c3f8ca8c1092565df5ad
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40546
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
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>
Diffstat (limited to 'import/chips/p9/xip')
| -rw-r--r-- | import/chips/p9/xip/p9_xip_image.C | 6 | ||||
| -rw-r--r-- | import/chips/p9/xip/p9_xip_image.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/import/chips/p9/xip/p9_xip_image.C b/import/chips/p9/xip/p9_xip_image.C index c13f0677..27bd26b1 100644 --- a/import/chips/p9/xip/p9_xip_image.C +++ b/import/chips/p9/xip/p9_xip_image.C @@ -559,7 +559,6 @@ xipSetSectionSize(void* io_image, const int i_section, const uint32_t i_size) /// Set the properties of a section -// XIP_STATIC int xipSetSectionProps(void* io_image, const int i_section, const uint8_t i_props) { @@ -3265,6 +3264,11 @@ int p9_xip_dd_section_support(const void* i_image, int rc; P9XipSection section; + if (i_sectionId == P9_XIP_SECTION_HW_OVERLAYS) + { + return P9_XIP_OVERLAYS_NOT_SUPPORTED; + } + rc = p9_xip_get_section(i_image, i_sectionId, §ion); if (!rc) diff --git a/import/chips/p9/xip/p9_xip_image.h b/import/chips/p9/xip/p9_xip_image.h index 212440ef..6c0d4e8b 100644 --- a/import/chips/p9/xip/p9_xip_image.h +++ b/import/chips/p9/xip/p9_xip_image.h @@ -1506,6 +1506,8 @@ p9_xip_decode_toc_dump(void* i_image, void* i_dump, /// Code bug in the ddLevel handling codes #define P9_XIP_DDLEVEL_CODE_BUG 22 +/// Temporary error code to help prevent image co-req for stage 2 release of RTC174302 +#define P9_XIP_OVERLAYS_NOT_SUPPORTED 23 /// Applications can expand this macro to declare an array of string forms of /// the error codes if desired. @@ -1534,6 +1536,7 @@ p9_xip_decode_toc_dump(void* i_image, void* i_dump, "P9_XIP_NO_DDLEVEL_SUPPORT", \ "P9_XIP_DDLEVEL_NOT_FOUND", \ "P9_XIP_DDLEVEL_CODE_BUG", \ + "P9_XIP_OVERLAYS_NOT_SUPPORTED", \ } /// Applications can use this macro to safely index the array of error |

