diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 05:41:32 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 05:41:32 +0000 |
commit | 97fc032b57b1d189139df778272942d6eaeb132d (patch) | |
tree | a4163d6b68782f2c493bf5802cab50b5c814deab /EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c | |
parent | a1c90cf694d1bd315cdc36f80148992a9c3c3b4e (diff) | |
download | edk2-platforms-97fc032b57b1d189139df778272942d6eaeb132d.tar.xz |
Follow up EDKT247-253
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1449 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c')
-rw-r--r-- | EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c b/EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c index 47442a9764..3838069bb5 100644 --- a/EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c +++ b/EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c @@ -1,5 +1,5 @@ /** @file
- Status code driver for IA32/X64/EBC architecture.
+* Status code driver for IPF architecture.
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -76,8 +76,8 @@ ReportEsalServiceEntry ( // Use atom operation to avoid the reentant of report.
// If current status is not zero, then the function is reentrancy.
//
- if (InterlockedCompareExchange32 (&DxeStatusCode->StatusCodeNestStatus, 0, 1)) {
- ReturnVal.Status = EFI_DEVICE_ERROR ;
+ if (1 == InterlockedCompareExchange32 (&DxeStatusCode->StatusCodeNestStatus, 0, 1)) {
+ ReturnVal.Status = EFI_DEVICE_ERROR;
return ReturnVal;
}
@@ -150,6 +150,8 @@ DxeStatusCodeDriverEntry ( IN EFI_SYSTEM_TABLE *SystemTable
)
{
+ EFI_STATUS Status;
+
//
// Dispatch initialization request to supported devices
//
@@ -158,13 +160,14 @@ DxeStatusCodeDriverEntry ( //
// Initialize ESAL capabilities.
//
- RegisterEsalClass (
- &gEfiExtendedSalStatusCodeServicesProtocolGuid,
- &gDxeStatusCode,
- ReportEsalServiceEntry,
- StatusCode,
- NULL
- );
+ Status = RegisterEsalClass (
+ &gEfiExtendedSalStatusCodeServicesProtocolGuid,
+ &gDxeStatusCode,
+ ReportEsalServiceEntry,
+ StatusCode,
+ NULL
+ );
+ ASSERT_EFI_ERROR (Status);
return EFI_SUCCESS;
}
|