X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseTimerLibLocalApic%2Fx86TimerLib.c;h=dd240d88d0d10a897f94473e2387205cefee4739;hp=fe18878d19d05f9014c40d126737ef8bc0880a74;hb=ddc316e240ca02f352c253481ec0c10684057add;hpb=dbf5dd75da639461456ce96ea48c0f73a1d071cc 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 ()); } /**