diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-11-30 20:31:18 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-01-03 12:23:41 +0100 |
commit | 32ea56f0a65b80324e3e651432bdf496a6fc55b7 (patch) | |
tree | ad5366303897262ea8ccec4f6631507a4aa89b92 /Vlv2TbltDevicePkg/BootScriptSaveDxe | |
parent | 387ccad8f6f3acbae80bbeb816c944dec672aa66 (diff) | |
download | edk2-platforms-32ea56f0a65b80324e3e651432bdf496a6fc55b7.tar.xz |
Vlv2TbltDevicePkg/BootScriptSaveDxe: save 64-bit LoopTimes
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>
Diffstat (limited to 'Vlv2TbltDevicePkg/BootScriptSaveDxe')
-rw-r--r-- | Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c b/Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c index af7b9680b6..4c6667df0c 100644 --- a/Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c +++ b/Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c @@ -348,14 +348,14 @@ BootScriptMemPoll ( UINT8 *BitMask;
UINT8 *BitValue;
UINTN Duration;
- UINTN LoopTimes;
+ UINT64 LoopTimes;
Width = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH);
Address = VA_ARG (Marker, UINT64);
BitMask = VA_ARG (Marker, UINT8 *);
BitValue = VA_ARG (Marker, UINT8 *);
Duration = (UINTN)VA_ARG (Marker, UINT64);
- LoopTimes = (UINTN)VA_ARG (Marker, UINT64);
+ LoopTimes = VA_ARG (Marker, UINT64);
return S3BootScriptSaveMemPoll (Width, Address, BitMask, BitValue, Duration, LoopTimes);
}
|