REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3986
The EFI_STATUS_CODE_DATA_MAX_SIZE is defined as 200 in MdeModulePkg.
After reducing 96byte buffer for variable parameters it is limited to
only 104 char debug string. This is a non-necessary limitation.
This change sets EFI_STATUS_CODE_DATA_MAX_SIZE to 0x200, and moves
MAX_EXTENDED_DATA_SIZE definition to the same header file with value
of EFI_STATUS_CODE_DATA_MAX_SIZE + sizeof (EFI_STATUS_CODE_DATA)
which is used in ReportStatusCodeLib to support longer debug string.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Cosmo Lai <cosmo.lai@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
#ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
#define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
\r
#ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
#define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
\r
+#include <Pi/PiStatusCode.h>\r
+\r
///\r
/// The Global ID used to identify a structure of type EFI_DEBUG_INFO.\r
///\r
///\r
/// The Global ID used to identify a structure of type EFI_DEBUG_INFO.\r
///\r
///\r
/// The maximum size of an EFI_DEBUG_INFO structure.\r
///\r
///\r
/// The maximum size of an EFI_DEBUG_INFO structure.\r
///\r
-#define EFI_STATUS_CODE_DATA_MAX_SIZE 200\r
+#define EFI_STATUS_CODE_DATA_MAX_SIZE 0x200\r
+\r
+///\r
+/// Define the maximum extended data size that is supported when a\r
+/// status code is reported.\r
+///\r
+#define MAX_EXTENDED_DATA_SIZE (EFI_STATUS_CODE_DATA_MAX_SIZE + sizeof(EFI_STATUS_CODE_DATA))\r
\r
///\r
/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed\r
\r
///\r
/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed\r
#include <Guid/StatusCodeDataTypeId.h>\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
\r
#include <Guid/StatusCodeDataTypeId.h>\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported when a status code is\r
-// reported at TPL_HIGH_LEVEL.\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
\r
/**\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
\r
/**\r
#include <Library/OemHookStatusCodeLib.h>\r
#include <Library/PcdLib.h>\r
\r
#include <Library/OemHookStatusCodeLib.h>\r
#include <Library/PcdLib.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported in the PEI phase\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
/**\r
Internal worker function that reports a status code through the PEI Status Code Service or\r
OEM Hook Status Code Library.\r
/**\r
Internal worker function that reports a status code through the PEI Status Code Service or\r
OEM Hook Status Code Library.\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
#include <Guid/EventGroup.h>\r
\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
#include <Guid/EventGroup.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported when a status code is reported.\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
EFI_EVENT mReportStatusCodeLibVirtualAddressChangeEvent;\r
EFI_EVENT mReportStatusCodeLibExitBootServicesEvent;\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
EFI_EVENT mReportStatusCodeLibVirtualAddressChangeEvent;\r
EFI_EVENT mReportStatusCodeLibExitBootServicesEvent;\r