diff options
author | Hao Wu <hao.a.wu@intel.com> | 2017-03-07 09:00:48 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-03-08 08:59:21 +0800 |
commit | e62a0eb61b5a37d46e559dc36b41c18fe9b1dc82 (patch) | |
tree | b601b84c1c7c013e520dc09d07b42ff9938b5510 /BaseTools/Source/Python/Table/TableEotReport.py | |
parent | 7babb4372e6a34cbbc54249b25056272a5a9924c (diff) | |
download | edk2-e62a0eb61b5a37d46e559dc36b41c18fe9b1dc82.tar.gz edk2-e62a0eb61b5a37d46e559dc36b41c18fe9b1dc82.tar.bz2 edk2-e62a0eb61b5a37d46e559dc36b41c18fe9b1dc82.zip |
UefiCpuPkg/PiSmmCpuDxeSmm: Refine casting result to bigger size
The commit is a follow-up of commit 8491e30.
In file MpService.c line 786:
Pte[Index] = (UINT64)((UINTN)PageTable + EFI_PAGE_SIZE * (Index + 1)) |
mAddressEncMask ...
(Where PageTable is of type VOID*, Index is of type UINTN, mAddressEncMask
is of type UINT64 and Pte[Index] is of type UINT64.)
Since in this case, the code logic ensures that the expression will not
exceed the range of UINTN, the commit will remove the explicit type cast
'(UINT64)'.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableEotReport.py')
0 files changed, 0 insertions, 0 deletions