UINT64 Address; \r
VOID *Data; \r
VOID *DataMask; \r
- UINTN Delay; \r
- UINTN LoopTimes;\r
+ UINT64 Delay;\r
+ UINT64 LoopTimes;\r
UINT32 Remainder;\r
\r
Width = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH); \r
Address = VA_ARG (Marker, UINT64); \r
Data = VA_ARG (Marker, VOID *); \r
DataMask = VA_ARG (Marker, VOID *); \r
- Delay = (UINTN)VA_ARG (Marker, UINT64); \r
+ Delay = VA_ARG (Marker, UINT64);\r
//\r
// According to the spec, the interval between 2 polls is 100ns,\r
// but the unit of Duration for S3BootScriptSaveMemPoll() is microsecond(1000ns).\r
// Duration will be minimum 1(microsecond) to be minimum deviation,\r
// so LoopTimes = Delay / 10.\r
//\r
- LoopTimes = (UINTN) DivU64x32Remainder (\r
+ LoopTimes = DivU64x32Remainder (\r
Delay,\r
10,\r
&Remainder\r