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