mirror of https://github.com/acidanthera/audk.git
Remove extra #Include
Remove platform specific capsule action from generic BdsDxe git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8891 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
22be261ccf
commit
971d3ab18d
|
@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
#ifndef __PLATFORM_BDS_LIB_H_
|
||||
#define __PLATFORM_BDS_LIB_H_
|
||||
|
||||
#include <Protocol/Bds.h>
|
||||
#include <Protocol/GenericMemoryTest.h>
|
||||
#include <Library/GenericBdsLib.h>
|
||||
|
||||
|
@ -77,7 +76,7 @@ PlatformBdsBootFail (
|
|||
VOID
|
||||
EFIAPI
|
||||
PlatformBdsBootSuccess (
|
||||
IN BDS_COMMON_OPTION *Option
|
||||
IN BDS_COMMON_OPTION *Option
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -13,55 +13,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
**/
|
||||
#include "Bds.h"
|
||||
|
||||
/**
|
||||
This function locks the block
|
||||
|
||||
@param CpuIo A instance of EFI_CPU_IO_PROTOCOL.
|
||||
@param Base The base address flash region to be locked.
|
||||
|
||||
**/
|
||||
VOID
|
||||
BdsLockFv (
|
||||
IN EFI_CPU_IO_PROTOCOL *CpuIo,
|
||||
IN EFI_PHYSICAL_ADDRESS Base
|
||||
)
|
||||
{
|
||||
EFI_FV_BLOCK_MAP_ENTRY *BlockMap;
|
||||
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;
|
||||
EFI_PHYSICAL_ADDRESS BaseAddress;
|
||||
UINT8 Data;
|
||||
UINT32 BlockLength;
|
||||
UINTN Index;
|
||||
|
||||
BaseAddress = Base - 0x400000 + 2;
|
||||
FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) (Base));
|
||||
BlockMap = &(FvHeader->BlockMap[0]);
|
||||
|
||||
while ((BlockMap->NumBlocks != 0) && (BlockMap->Length != 0)) {
|
||||
BlockLength = BlockMap->Length;
|
||||
for (Index = 0; Index < BlockMap->NumBlocks; Index++) {
|
||||
CpuIo->Mem.Read (
|
||||
CpuIo,
|
||||
EfiCpuIoWidthUint8,
|
||||
BaseAddress,
|
||||
1,
|
||||
&Data
|
||||
);
|
||||
Data = (UINT8) (Data | 0x3);
|
||||
CpuIo->Mem.Write (
|
||||
CpuIo,
|
||||
EfiCpuIoWidthUint8,
|
||||
BaseAddress,
|
||||
1,
|
||||
&Data
|
||||
);
|
||||
BaseAddress += BlockLength;
|
||||
}
|
||||
|
||||
BlockMap++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
This routine is called to see if there are any capsules we need to process.
|
||||
|
|
Loading…
Reference in New Issue