From: bxing Date: Fri, 18 Aug 2006 08:33:00 +0000 (+0000) Subject: Fixed a bug causing the high order double word of values returned by GetPerformanceCo... X-Git-Tag: edk2-stable201903~24551 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=6e028650e75c51764be37e461a54df7f11d7992e Fixed a bug causing the high order double word of values returned by GetPerformanceCounter() became -1. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1322 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index a656a80c4c..dd240d88d0 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -210,7 +210,7 @@ GetPerformanceCounter ( VOID ) { - return InternalX86GetTimerTick (InternalX86GetApicBase ()); + return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); } /**