/** @file\r
Report Status Code Library for DXE Phase.\r
\r
- Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\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 Status;\r
EFI_STATUS_CODE_DATA *StatusCodeData;\r
EFI_TPL Tpl;\r
- UINT64 Buffer[MAX_EXTENDED_DATA_SIZE / sizeof (UINT64)];\r
+ UINT64 Buffer[EFI_STATUS_CODE_DATA_MAX_SIZE / sizeof (UINT64)];\r
\r
ASSERT (!((ExtendedData == NULL) && (ExtendedDataSize != 0)));\r
ASSERT (!((ExtendedData != NULL) && (ExtendedDataSize == 0)));\r
//\r
// If a buffer could not be allocated, then see if the local variable Buffer can be used\r
//\r
- if (ExtendedDataSize > (MAX_EXTENDED_DATA_SIZE - sizeof (EFI_STATUS_CODE_DATA))) {\r
+ if (ExtendedDataSize > (EFI_STATUS_CODE_DATA_MAX_SIZE - sizeof (EFI_STATUS_CODE_DATA))) {\r
//\r
// The local variable Buffer not large enough to hold the extended data associated\r
- // with the status code being reported.\r
+ // with the status code being reported.\r
//\r
ASSERT (FALSE);\r
return EFI_OUT_OF_RESOURCES;\r
/** @file\r
Instance of Report Status Code Library for PEI Phase.\r
\r
- Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\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
{\r
EFI_STATUS_CODE_DATA *StatusCodeData;\r
- UINT64 Buffer[MAX_EXTENDED_DATA_SIZE / sizeof (UINT64)];\r
+ UINT64 Buffer[EFI_STATUS_CODE_DATA_MAX_SIZE / sizeof (UINT64)];\r
\r
//\r
// If ExtendedData is NULL and ExtendedDataSize is not zero, then ASSERT().\r
//\r
ASSERT (!((ExtendedData != NULL) && (ExtendedDataSize == 0)));\r
\r
- if (ExtendedDataSize > (MAX_EXTENDED_DATA_SIZE - sizeof (EFI_STATUS_CODE_DATA))) {\r
+ if (ExtendedDataSize > (EFI_STATUS_CODE_DATA_MAX_SIZE - sizeof (EFI_STATUS_CODE_DATA))) {\r
//\r
// The local variable Buffer not large enough to hold the extended data associated\r
- // with the status code being reported.\r
+ // with the status code being reported.\r
//\r
ASSERT (FALSE);\r
return EFI_OUT_OF_RESOURCES;\r