]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/BootScriptSaveDxe: save 64-bit LoopTimes
authorLaszlo Ersek <lersek@redhat.com>
Wed, 30 Nov 2016 19:31:18 +0000 (20:31 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 3 Jan 2017 11:23:41 +0000 (12:23 +0100)
The BootScriptMemPoll() helper function does the following:

- pop LoopTimes from the variable argument list as UINT64, then truncate
  it to UINTN,

- pass the truncated value to S3BootScriptSaveMemPoll() as last argument.

The truncation to UINTN is now superfluous, thanks to the patch titled
"MdePkg, MdeModulePkg: S3BootScriptSaveMemPoll(): accept 64-bit
LoopTimes".

Cc: David Wei <david.wei@intel.com>
Cc: Mang Guo <mang.guo@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c

index af7b9680b6437b92b825b809091930270951e80e..4c6667df0c61e2eb82d9040d75b93397ad7bf84a 100644 (file)
@@ -348,14 +348,14 @@ BootScriptMemPoll (
   UINT8                 *BitMask;\r
   UINT8                 *BitValue;\r
   UINTN                Duration;\r
-  UINT               LoopTimes;\r
+  UINT64               LoopTimes;\r
 \r
   Width       = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH);\r
   Address     = VA_ARG (Marker, UINT64);\r
   BitMask     = VA_ARG (Marker, UINT8 *);\r
   BitValue    = VA_ARG (Marker, UINT8 *);\r
   Duration    = (UINTN)VA_ARG (Marker, UINT64);\r
-  LoopTimes   = (UINTN)VA_ARG (Marker, UINT64);\r
+  LoopTimes   = VA_ARG (Marker, UINT64);\r
 \r
   return S3BootScriptSaveMemPoll (Width, Address, BitMask, BitValue, Duration, LoopTimes);\r
 }\r