]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/FvbRuntimeService/FWBlockService.c
UefiCpuPkg/PiSmmCpuDxeSmm: patch "gSmiStack" with PatchInstructionX86()
[mirror_edk2.git] / DuetPkg / FvbRuntimeService / FWBlockService.c
index 664a4cffc6e9b38253012c05e661f5de07bd3c4f..bc663273d4ce1f5c0076c3c98f337119a5a0b30d 100644 (file)
@@ -1,6 +1,6 @@
 /**@file\r
-Copyright (c) 2007, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2007 - 2009, 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
@@ -83,11 +83,11 @@ Returns:
 \r
 --*/\r
 {\r
-  EFI_STATUS  Status;\r
-  EFI_FILE    *File;\r
-  UINTN       FileOffset;\r
-  UINTN       BufferForFile;\r
-  UINTN       Length;\r
+  EFI_STATUS          Status;\r
+  EFI_FILE_PROTOCOL   *File;\r
+  UINTN               FileOffset;\r
+  UINTN               BufferForFile;\r
+  UINTN               Length;\r
 \r
   Status = EFI_SUCCESS;\r
   CopyMem ((VOID *) Address, Buffer, *NumBytes);\r
@@ -131,11 +131,11 @@ Returns:
 \r
 --*/\r
 {\r
-  EFI_STATUS  Status;\r
-  EFI_FILE    *File;\r
-  UINTN       FileOffset;\r
-  UINTN       BufferForFile;\r
-  UINTN       Length;\r
+  EFI_STATUS           Status;\r
+  EFI_FILE_PROTOCOL    *File;\r
+  UINTN                FileOffset;\r
+  UINTN                BufferForFile;\r
+  UINTN                Length;\r
 \r
   Status = EFI_SUCCESS;\r
 \r
@@ -991,7 +991,7 @@ Returns:
       break;\r
     }\r
 \r
-    NumOfLba = VA_ARG (args, UINT32);\r
+    NumOfLba = VA_ARG (args, UINTN);\r
 \r
     //\r
     // Check input parameters\r
@@ -1011,7 +1011,7 @@ Returns:
       break;\r
     }\r
 \r
-    NumOfLba = VA_ARG (args, UINT32);\r
+    NumOfLba = VA_ARG (args, UINTN);\r
 \r
     while (NumOfLba > 0) {\r
       Status = FvbEraseBlock (FvbDevice->Instance, StartingLba, mFvbModuleGlobal, EfiGoneVirtual ());\r
@@ -1272,7 +1272,7 @@ OnSimpleFileSystemInstall (
   EFI_HANDLE                Handle;\r
   UINTN                     Instance;\r
   EFI_DEVICE_PATH_PROTOCOL  *Device;\r
-  EFI_FILE                  *File;\r
+  EFI_FILE_PROTOCOL         *File;\r
   EFI_FW_VOL_INSTANCE       *FwhInstance;\r
   while (TRUE) {\r
     HandleSize = sizeof (EFI_HANDLE);\r