Revision: 13709
          http://edk2.svn.sourceforge.net/edk2/?rev=13709&view=rev
Author:   vanjeff
Date:     2012-09-10 02:36:17 +0000 (Mon, 10 Sep 2012)
Log Message:
-----------
Add type cast to avoid sign extension on x64 tip.

signed-off-by: Jeff Fan <[email protected]>
reviewed-by: Ruiyu Ni <[email protected]>

Modified Paths:
--------------
    trunk/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c

Modified: trunk/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c
===================================================================
--- trunk/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c       2012-09-10 02:32:45 UTC (rev 
13708)
+++ trunk/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c       2012-09-10 02:36:17 UTC (rev 
13709)
@@ -1164,7 +1164,7 @@
       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

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to