diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2013-08-19 08:56:23 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-09-13 17:38:38 -0500 |
commit | 5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f (patch) | |
tree | 6c8e663be551562a7835d4f554a13e5afe7e317a /src/include/usr/vmmconst.h | |
parent | 45f3421a82460ed2ce5dd86d3bb62209ac9d948e (diff) | |
download | talos-hostboot-5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f.tar.gz talos-hostboot-5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f.zip |
Catch overrun of HSVC attributes in HDAT
Ran into a problem integrating a new HB release that would have
been a lot easier to debug if this code had been there.
Change-Id: I3c420172bcff25a7042d3ee603f179273ba88761
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5827
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/vmmconst.h')
-rw-r--r-- | src/include/usr/vmmconst.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/usr/vmmconst.h b/src/include/usr/vmmconst.h index 6190e719e..fbb787ea1 100644 --- a/src/include/usr/vmmconst.h +++ b/src/include/usr/vmmconst.h @@ -146,8 +146,11 @@ enum BlockPriority #define VMM_SIZE_RMVPAGE_TEST (8 * PAGESIZE) /** Chunk of physical memory to use for HostServices Attributes */ -#define HSVC_TEST_MEMORY_ADDR (VMM_MEMORY_SIZE + 32*MEGABYTE) -#define HSVC_TEST_MEMORY_SIZE (2*MEGABYTE) +#define HSVC_TEST_MEMORY_ADDR (VMM_MEMORY_SIZE + 32*MEGABYTE) +#define HSVC_TEST_SYSDATA_SIZE (4*KILOBYTE) /* match FSP HDAT code */ +#define HSVC_TEST_NODEDATA_SIZE (256000) /* match FSP HDAT code */ +#define HSVC_TEST_MEMORY_SIZE \ + ALIGN_PAGE((HSVC_TEST_SYSDATA_SIZE+HSVC_TEST_NODEDATA_SIZE)) /* Chunk of physical memory used for Dump Source Table */ #define DUMP_TEST_MEMORY_ADDR (HSVC_TEST_MEMORY_ADDR + HSVC_TEST_MEMORY_SIZE) |