From cbcccd2c9d93a35884c344a3feaa773338675dff Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 13 May 2013 02:36:09 +0000 Subject: Update Code to pass EBC compiler. Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14352 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Bus/Isa/IsaFloppyPei/FloppyPeim.c | 18 ++++-------------- IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc | 5 ++++- 2 files changed, 8 insertions(+), 15 deletions(-) (limited to 'IntelFrameworkModulePkg') diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c index afeb2213c0..d1b7dcf416 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c @@ -1,7 +1,7 @@ /** @file Floppy Peim to support Recovery function from Floppy device. -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions @@ -1018,22 +1018,12 @@ DiscoverFdcDevice ( // Check Media // Status = DisketChanged (FdcBlkIoDev, Info); - switch (Status) { - case EFI_NO_MEDIA: + if (Status == EFI_NO_MEDIA) { // // No diskette in floppy. // - MediaInfo->MediaPresent = FALSE; - break; - - case EFI_MEDIA_CHANGED: - case EFI_SUCCESS: - // - // Diskette exists in floppy. - // - break; - - default: + MediaInfo->MediaPresent = FALSE; + } else if (Status != EFI_MEDIA_CHANGED && Status != EFI_SUCCESS) { // // EFI_DEVICE_ERROR // diff --git a/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc b/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc index b004067155..4f4d63dc4a 100644 --- a/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc +++ b/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc @@ -3,7 +3,7 @@ # # This file is used to build all modules in IntelFrameworkModulePkg. # -#Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.
+#Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.
#This program and the accompanying materials are licensed and made available under #the terms and conditions of the BSD License that accompanies this distribution. #The full text of the license may be found at @@ -80,6 +80,9 @@ PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf +[LibraryClasses.EBC.PEIM] + IoLib|MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf + [LibraryClasses.common.DXE_DRIVER] LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf -- cgit v1.2.3