From 5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Mon, 19 Aug 2013 08:56:23 -0500 Subject: 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 --- src/include/usr/vmmconst.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include/usr/vmmconst.h') 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) -- cgit v1.2.1