X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseTimerLibLocalApic%2Fx86TimerLib.c;h=09b614119da174b1d272aa25bfc414935249eb13;hp=e3af546367e10a4b68e53d621c0d2e71723f04d6;hb=5117b83be8d73a9c5d15b236e57e4d194d1d9428;hpb=ed384ef31cff0681d724847c684476aed214917c diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index e3af546367..09b614119d 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 ()); } /** @@ -241,8 +239,8 @@ GetPerformanceCounter ( UINT64 EFIAPI GetPerformanceCounterProperties ( - IN UINT64 *StartValue, - IN UINT64 *EndValue + OUT UINT64 *StartValue, OPTIONAL + OUT UINT64 *EndValue OPTIONAL ) { UINTN ApicBase;