Revision: 17611
          http://sourceforge.net/p/edk2/code/17611
Author:   timhe
Date:     2015-06-10 09:14:40 +0000 (Wed, 10 Jun 2015)
Log Message:
-----------
Remove Runtime access attribute for PlatformInfo 

variable, and fix the boot issue in case ?\226?\128?\156Timeout?\226?\128?\157 

variable is corrupted. 

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tim He <[email protected]>
Reviewed-by: David Wei <[email protected]>

Modified Paths:
--------------
    branches/UDK2014.SP1/Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c
    branches/UDK2014.SP1/Vlv2TbltDevicePkg/PlatformInfoDxe/PlatformInfoDxe.c

Modified: 
branches/UDK2014.SP1/Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c
===================================================================
--- branches/UDK2014.SP1/Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c 
2015-06-10 07:52:12 UTC (rev 17610)
+++ branches/UDK2014.SP1/Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c 
2015-06-10 09:14:40 UTC (rev 17611)
@@ -1618,6 +1618,11 @@
   UINTN                              BootOrderSize;
 
   Timeout = PcdGet16 (PcdPlatformBootTimeOut);
+  if (Timeout > 10 ) {
+    //we think the Timeout variable is corrupted
+    Timeout = 10;
+  }
+       
   VarSize = sizeof(SYSTEM_CONFIGURATION);
   Status = gRT->GetVariable(
                   NORMAL_SETUP_NAME,

Modified: 
branches/UDK2014.SP1/Vlv2TbltDevicePkg/PlatformInfoDxe/PlatformInfoDxe.c
===================================================================
--- branches/UDK2014.SP1/Vlv2TbltDevicePkg/PlatformInfoDxe/PlatformInfoDxe.c    
2015-06-10 07:52:12 UTC (rev 17610)
+++ branches/UDK2014.SP1/Vlv2TbltDevicePkg/PlatformInfoDxe/PlatformInfoDxe.c    
2015-06-10 09:14:40 UTC (rev 17611)
@@ -168,7 +168,7 @@
       Status = gRT->SetVariable(
                       L"PlatformInfo",
                       &gEfiVlv2VariableGuid,
-                      EFI_VARIABLE_BOOTSERVICE_ACCESS | 
EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE,
+                      EFI_VARIABLE_BOOTSERVICE_ACCESS | 
EFI_VARIABLE_NON_VOLATILE,
                       sizeof(EFI_PLATFORM_INFO_HOB),
                       PlatformInfoHobPtr
                       );


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to