diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index fe18878d19..dd240d88d0 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -210,8 +210,7 @@ GetPerformanceCounter ( VOID ) { - volatile static UINT64 Mask = 0xffffffff; - return InternalX86GetTimerTick (InternalX86GetApicBase ()) & Mask; + return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); } /**