mirror of https://github.com/acidanthera/audk.git
Add type cast to avoid sign extension on x64 tip.
signed-off-by: Jeff Fan <jeff.fan@intel.com> reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13709 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e5010d30f4
commit
be7256aeb0
|
@ -1164,7 +1164,7 @@ InitInterruptDescriptorTable (
|
|||
IntHandler =
|
||||
(VOID*) (
|
||||
OldIdt[Index].Bits.OffsetLow +
|
||||
(OldIdt[Index].Bits.OffsetHigh << 16)
|
||||
(((UINTN) OldIdt[Index].Bits.OffsetHigh) << 16)
|
||||
#if defined (MDE_CPU_X64)
|
||||
+ (((UINTN) OldIdt[Index].Bits.OffsetUpper) << 32)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue