]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c
correct Intel's copyright date as the changes checked-in at r11273 & r11272 are contr...
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / EmuRuntimeDxe / InitVariable.c
index fa2b2a32ba7e2a09b4f29e555d82ccef88cc8249..d636fcf20d2c663f40ee3fa92d5ca58ec4b7eda7 100644 (file)
@@ -3,8 +3,8 @@
   Implment all four UEFI runtime variable services and \r
   install variable architeture protocol.\r
   \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -51,8 +51,7 @@ RuntimeServiceGetVariable (
           Attributes OPTIONAL,\r
           DataSize,\r
           Data,\r
-          &mVariableModuleGlobal->VariableGlobal[Physical],\r
-          mVariableModuleGlobal->FvbInstance\r
+          &mVariableModuleGlobal->VariableGlobal[Physical]\r
           );\r
 }\r
 \r
@@ -82,8 +81,7 @@ RuntimeServiceGetNextVariableName (
           VariableNameSize,\r
           VariableName,\r
           VendorGuid,\r
-          &mVariableModuleGlobal->VariableGlobal[Physical],\r
-          mVariableModuleGlobal->FvbInstance\r
+          &mVariableModuleGlobal->VariableGlobal[Physical]\r
           );\r
 }\r
 \r
@@ -123,8 +121,7 @@ RuntimeServiceSetVariable (
           Data,\r
           &mVariableModuleGlobal->VariableGlobal[Physical],\r
           &mVariableModuleGlobal->VolatileLastVariableOffset,\r
-          &mVariableModuleGlobal->NonVolatileLastVariableOffset,\r
-          mVariableModuleGlobal->FvbInstance\r
+          &mVariableModuleGlobal->NonVolatileLastVariableOffset\r
           );\r
 }\r
 \r
@@ -160,8 +157,7 @@ RuntimeServiceQueryVariableInfo (
           MaximumVariableStorageSize,\r
           RemainingVariableStorageSize,\r
           MaximumVariableSize,\r
-          &mVariableModuleGlobal->VariableGlobal[Physical],\r
-          mVariableModuleGlobal->FvbInstance\r
+          &mVariableModuleGlobal->VariableGlobal[Physical]\r
           );\r
 }\r
 \r
@@ -182,6 +178,9 @@ VariableClassAddressChangeEvent (
   IN VOID             *Context\r
   )\r
 {\r
+  EfiConvertPointer (0x0, (VOID **) &mVariableModuleGlobal->PlatformLangCodes);\r
+  EfiConvertPointer (0x0, (VOID **) &mVariableModuleGlobal->LangCodes);\r
+  EfiConvertPointer (0x0, (VOID **) &mVariableModuleGlobal->PlatformLang);\r
   EfiConvertPointer (\r
     0x0,\r
     (VOID **) &mVariableModuleGlobal->VariableGlobal[Physical].NonVolatileVariableBase\r
@@ -196,7 +195,7 @@ VariableClassAddressChangeEvent (
 /**\r
   EmuVariable Driver main entry point. The Variable driver places the 4 EFI\r
   runtime services in the EFI System Table and installs arch protocols \r
-  for variable read and write services being availible. It also registers\r
+  for variable read and write services being available. It also registers\r
   notification function for EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event.\r
 \r
   @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r