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>
UINT8 *BitMask;\r
UINT8 *BitValue;\r
UINTN Duration;\r
- UINTN 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