This includes information about the class and subclass that is used to classify the entity \r
as well as an operation. For progress codes, the operation is the current activity. \r
For error codes, it is the exception. For debug codes, it is not defined at this time. \r
- Type EFI_STATUS_CODE_VALUE is defined in ¡°Related Definitions¡± below. \r
+ Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below. \r
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
@param Instance The enumeration of a hardware or software entity within the system. \r
A system may contain multiple entities that match a class/subclass pairing. \r
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below. \r
The contents of this data type may have additional GUID-specific data. The standard GUIDs and \r
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.\r
+\r
+ @return Always return EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS \r
EFIAPI\r
\r
//\r
// Declaration of status code protocol.\r
-// \r
+//\r
+STATIC\r
EFI_STATUS_CODE_PROTOCOL mEfiStatusCodeProtocol = {\r
ReportDispatcher\r
};\r
\r
**/\r
EFI_STATUS\r
-EFIAPI\r
DxeStatusCodeDriverEntry (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
This includes information about the class and subclass that is used to classify the entity \r
as well as an operation. For progress codes, the operation is the current activity. \r
For error codes, it is the exception. For debug codes, it is not defined at this time. \r
- Type EFI_STATUS_CODE_VALUE is defined in ¡°Related Definitions¡± below. \r
+ Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below. \r
Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
@param Instance The enumeration of a hardware or software entity within the system. \r
A system may contain multiple entities that match a class/subclass pairing. \r
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below. \r
The contents of this data type may have additional GUID-specific data. The standard GUIDs and \r
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.\r
+\r
+ @return Always return EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS \r
EFIAPI\r
IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r
)\r
{\r
+ volatile int tt = 1;\r
+ while (tt) {\r
+ }\r
//\r
// Use atom operation to avoid the reentant of report.\r
// If current status is not zero, then the function is reentrancy.\r
//\r
- if (InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) {\r
+ if (1 == InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) {\r
return EFI_DEVICE_ERROR;\r
}\r
\r
to virtual address.\r
\r
@param Event Event whose notification function is being invoked.\r
- @param Context Pointer to the notification function¡¯s context, which is\r
+ @param Context Pointer to the notification function's context, which is\r
always zero in current implementation.\r
\r
**/\r