From 6e028650e75c51764be37e461a54df7f11d7992e Mon Sep 17 00:00:00 2001 From: bxing Date: Fri, 18 Aug 2006 08:33:00 +0000 Subject: [PATCH] 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 --- MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ()); } /** -- 2.39.2