Enable PlatformBdsDxe

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3008 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2007-07-03 12:31:15 +00:00
parent 2ff82e8d10
commit 851d410b54
8 changed files with 25 additions and 18 deletions

View File

@ -66,7 +66,7 @@ Returns:
); );
ASSERT (gST->FirmwareVendor != NULL); ASSERT (gST->FirmwareVendor != NULL);
gST->FirmwareRevision = EFI_FIRMWARE_REVISION; gST->FirmwareRevision = FIRMWARE_REVISION;
// //
// Fixup Tasble CRC after we updated Firmware Vendor and Revision // Fixup Tasble CRC after we updated Firmware Vendor and Revision

View File

@ -20,6 +20,7 @@
// The package level header files this module uses // The package level header files this module uses
// //
#include <PiDxe.h> #include <PiDxe.h>
// //
// The protocols, PPI and GUID defintions for this module // The protocols, PPI and GUID defintions for this module
// //
@ -46,6 +47,11 @@
#include <Guid/FlashMapHob.h> #include <Guid/FlashMapHob.h>
#include <Protocol/SerialIo.h> #include <Protocol/SerialIo.h>
#include <Protocol/LegacyBios.h> #include <Protocol/LegacyBios.h>
#include <Common/MaxBbsEntries.h>
#include <Guid/PcAnsi.h>
#include <Guid/DataHubRecords.h>
#include <Protocol/Performance.h>
// //
// The Library classes this module consumes // The Library classes this module consumes
// //
@ -69,4 +75,11 @@
#include <Library/HiiLibFramework.h> #include <Library/HiiLibFramework.h>
#include <Library/PeCoffLib.h> #include <Library/PeCoffLib.h>
//
// The rest of the includes
//
#include <Common/FirmwareRevision.h>
extern UINT8 PlatformBdsStrings[];
#endif #endif

View File

@ -35,7 +35,6 @@ EFI_GUID gBmGuid = BOOT_MANAGER_GUID;
extern EFI_FORM_BROWSER_PROTOCOL *gBrowser; extern EFI_FORM_BROWSER_PROTOCOL *gBrowser;
extern UINT8 BootManagerVfrBin[]; extern UINT8 BootManagerVfrBin[];
extern UINT8 BdsStrings[];
extern BOOLEAN gConnectAllHappened; extern BOOLEAN gConnectAllHappened;
EFI_STATUS EFI_STATUS
@ -173,7 +172,7 @@ Returns:
// //
// Post our VFR to the HII database // Post our VFR to the HII database
// //
PackageList = PreparePackages (2, &BmGuid, BootManagerVfrBin, BdsStrings); PackageList = PreparePackages (2, &BmGuid, BootManagerVfrBin, PlatformBdsStrings);
Status = Hii->NewPack (Hii, PackageList, &gBootManagerHandle); Status = Hii->NewPack (Hii, PackageList, &gBootManagerHandle);
FreePool (PackageList); FreePool (PackageList);

View File

@ -48,10 +48,10 @@ BdsLockFv (
BaseAddress = FlashEntry->Base - 0x400000 + 2; BaseAddress = FlashEntry->Base - 0x400000 + 2;
FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) (FlashEntry->Base)); FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) (FlashEntry->Base));
BlockMap = &(FvHeader->FvBlockMap[0]); BlockMap = &(FvHeader->BlockMap[0]);
while ((BlockMap->NumBlocks != 0) && (BlockMap->BlockLength != 0)) { while ((BlockMap->NumBlocks != 0) && (BlockMap->Length != 0)) {
BlockLength = BlockMap->BlockLength; BlockLength = BlockMap->Length;
for (Index = 0; Index < BlockMap->NumBlocks; Index++) { for (Index = 0; Index < BlockMap->NumBlocks; Index++) {
CpuIo->Mem.Read ( CpuIo->Mem.Read (
CpuIo, CpuIo,

View File

@ -22,7 +22,6 @@ Abstract:
// Include common header file for this module. // Include common header file for this module.
// //
#include "CommonHeader.h" #include "CommonHeader.h"
#include "DeviceManager.h" #include "DeviceManager.h"
STATIC UINT16 mTokenCount; STATIC UINT16 mTokenCount;

View File

@ -27,12 +27,11 @@ Revision History
#include "CommonHeader.h" #include "CommonHeader.h"
#include "Bds.h" #include "Bds.h"
#include "String.h" #include "BdsString.h"
#include "Language.h" #include "Language.h"
extern UINT8 BdsStrings[];
EFI_GUID gBdsStringPackGuid = { 0x7bac95d3, 0xddf, 0x42f3, 0x9e, 0x24, 0x7c, 0x64, 0x49, 0x40, 0x37, 0x9a }; EFI_GUID gBdsStringPackGuid = { 0x7bac95d3, 0xddf, 0x42f3, 0x9e, 0x24, 0x7c, 0x64, 0x49, 0x40, 0x37, 0x9a };
extern UINT8 PlatformBdsStrings[];
EFI_STATUS EFI_STATUS
InitializeStringSupport ( InitializeStringSupport (
@ -63,7 +62,7 @@ Returns:
&Hii &Hii
); );
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
PackageList = PreparePackages (1, &gBdsStringPackGuid, BdsStrings); PackageList = PreparePackages (1, &gBdsStringPackGuid, PlatformBdsStrings);
Status = Hii->NewPack (Hii, PackageList, &gStringPackHandle); Status = Hii->NewPack (Hii, PackageList, &gStringPackHandle);
FreePool (PackageList); FreePool (PackageList);
} }

View File

@ -21,13 +21,8 @@ Revision History
--*/ --*/
#ifndef _STRING_H_ #ifndef _PLATFORMBDS_STRING_H_
#define _STRING_H_ #define _PLATFORMBDS_STRING_H_
//
// Include common header file for this module.
//
#include "CommonHeader.h"
// //
// String Definition Guid for BDS Platform // String Definition Guid for BDS Platform

View File

@ -27,6 +27,8 @@ Abstract:
#include "Generic/Bds.h" #include "Generic/Bds.h"
#include "BdsPlatform.h" #include "BdsPlatform.h"
#include <Protocol/WinNtThunk.h>
#include <Protocol/WinNtIo.h>
// //
// Predefined platform default time out value // Predefined platform default time out value