MdeModulePkg CdExpressPei: Use correct PeiServices pointer to call low level BlockIoPpi->ReadBlocks.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15050 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Star Zeng 2014-01-06 03:36:31 +00:00 committed by lzeng14
parent 979fc9eab5
commit 56a9e699dd
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Source file for CD recovery PEIM Source file for CD recovery PEIM
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions are licensed and made available under the terms and conditions
@ -259,7 +259,7 @@ FindRecoveryCapsules (
while (TRUE) { while (TRUE) {
SetMem (Buffer, BufferSize, 0); SetMem (Buffer, BufferSize, 0);
Status = BlockIoPpi->ReadBlocks ( Status = BlockIoPpi->ReadBlocks (
PrivateData->PeiServices, (EFI_PEI_SERVICES **) GetPeiServicesTablePointer (),
BlockIoPpi, BlockIoPpi,
IndexBlockDevice, IndexBlockDevice,
Lba, Lba,
@ -350,7 +350,7 @@ RetrieveCapsuleFileFromRoot (
SetMem (Buffer, BufferSize, 0); SetMem (Buffer, BufferSize, 0);
Status = BlockIoPpi->ReadBlocks ( Status = BlockIoPpi->ReadBlocks (
PrivateData->PeiServices, (EFI_PEI_SERVICES **) GetPeiServicesTablePointer (),
BlockIoPpi, BlockIoPpi,
IndexBlockDevice, IndexBlockDevice,
Lba, Lba,
@ -566,7 +566,7 @@ LoadRecoveryCapsule (
BlockIoPpi = PrivateData->CapsuleData[CapsuleInstance - 1].BlockIo; BlockIoPpi = PrivateData->CapsuleData[CapsuleInstance - 1].BlockIo;
Status = BlockIoPpi->ReadBlocks ( Status = BlockIoPpi->ReadBlocks (
PrivateData->PeiServices, PeiServices,
BlockIoPpi, BlockIoPpi,
PrivateData->CapsuleData[CapsuleInstance - 1].IndexBlock, PrivateData->CapsuleData[CapsuleInstance - 1].IndexBlock,
PrivateData->CapsuleData[CapsuleInstance - 1].CapsuleStartLBA, PrivateData->CapsuleData[CapsuleInstance - 1].CapsuleStartLBA,

View File

@ -1,7 +1,7 @@
/** @file /** @file
Header file for CD recovery PEIM Header file for CD recovery PEIM
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions are licensed and made available under the terms and conditions
@ -74,7 +74,6 @@ typedef struct {
typedef struct { typedef struct {
UINTN Signature; UINTN Signature;
EFI_PEI_SERVICES **PeiServices;
EFI_PEI_DEVICE_RECOVERY_MODULE_PPI DeviceRecoveryPpi; EFI_PEI_DEVICE_RECOVERY_MODULE_PPI DeviceRecoveryPpi;
EFI_PEI_PPI_DESCRIPTOR PpiDescriptor; EFI_PEI_PPI_DESCRIPTOR PpiDescriptor;
EFI_PEI_NOTIFY_DESCRIPTOR NotifyDescriptor; EFI_PEI_NOTIFY_DESCRIPTOR NotifyDescriptor;