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
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
// 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