From 7658d609a376be0fba1c2ba3496e016e55f7aa3a Mon Sep 17 00:00:00 2001 From: AJFISH Date: Fri, 13 Jul 2007 22:51:36 +0000 Subject: Convert NT32 to use PCD settings for UEFI Timeout and language variables as a POC for new BDS. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3241 6f19259b-4bc3-4df7-8a09-765794883524 --- Nt32Pkg/Library/EdkGenericBdsLib/BdsMisc.c | 4 ++-- Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.inf | 3 +++ .../Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h | 15 +++++---------- 3 files changed, 10 insertions(+), 12 deletions(-) (limited to 'Nt32Pkg/Library') diff --git a/Nt32Pkg/Library/EdkGenericBdsLib/BdsMisc.c b/Nt32Pkg/Library/EdkGenericBdsLib/BdsMisc.c index 13ec89f501..9fa05ffd6d 100644 --- a/Nt32Pkg/Library/EdkGenericBdsLib/BdsMisc.c +++ b/Nt32Pkg/Library/EdkGenericBdsLib/BdsMisc.c @@ -25,7 +25,7 @@ Abstract: #define MAX_STRING_LEN 200 static BOOLEAN mFeaturerSwitch = TRUE; static BOOLEAN mResetRequired = FALSE; -extern UINT16 gPlatformBootTimeOutDefault; + UINT16 BdsLibGetTimeout ( @@ -66,7 +66,7 @@ Returns: // present. // This code should be removed later. // - Timeout = gPlatformBootTimeOutDefault; + Timeout = PcdGet16 (PcdUefiVariableDefaultTimeout); // // Notes: Platform should set default variable if non exists on all error cases!!! diff --git a/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.inf b/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.inf index ca25796624..b4d579f36e 100644 --- a/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.inf +++ b/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.inf @@ -63,6 +63,7 @@ DxeServicesTableLib UefiLib BaseLib + PcdLib [Guids] gEfiGlobalVariableGuid # ALWAYS_CONSUMED @@ -85,3 +86,5 @@ gEfiFirmwareVolumeProtocolGuid # PROTOCOL SOMETIMES_CONSUMED gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED +[PcdsFixedAtBuild.common] + PcdUefiVariableDefaultTimeout|gEfiMdePkgTokenSpaceGuid diff --git a/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h b/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h index 9d07a5c88b..2b49ce4fe6 100644 --- a/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h +++ b/Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h @@ -21,20 +21,14 @@ // #include #include -// -// The protocols, PPI and GUID defintions for this module -// #include #include #include #include -#include -#include #include #include #include #include -#include #include #include #include @@ -44,10 +38,9 @@ #include #include #include - -// -// The Library classes this module consumes -// +#include +#include +#include #include #include #include @@ -62,6 +55,8 @@ #include #include #include +#include + #define PERF_TOKEN_LENGTH 28 #define PERF_PEI_ENTRY_MAX_NUM 50 -- cgit v1.2.3