X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseTimerLibLocalApic%2Fx86TimerLib.c;h=dd240d88d0d10a897f94473e2387205cefee4739;hp=e3af546367e10a4b68e53d621c0d2e71723f04d6;hb=ddc316e240ca02f352c253481ec0c10684057add;hpb=ed384ef31cff0681d724847c684476aed214917c diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index e3af546367..dd240d88d0 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -115,8 +115,6 @@ InternalX86Delay ( { INT32 Ticks; - ApicBase = InternalX86GetApicBase (); - // // The target timer count is calculated here // @@ -212,7 +210,7 @@ GetPerformanceCounter ( VOID ) { - return InternalX86GetTimerTick (InternalX86GetApicBase ()); + return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); } /**