From 97fc032b57b1d189139df778272942d6eaeb132d Mon Sep 17 00:00:00 2001 From: yshang1 Date: Tue, 5 Sep 2006 05:41:32 +0000 Subject: Follow up EDKT247-253 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1449 6f19259b-4bc3-4df7-8a09-765794883524 --- .../StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c') 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; } -- cgit v1.2.3