X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseTimerLibLocalApic%2Fx86TimerLib.c;fp=MdePkg%2FLibrary%2FBaseTimerLibLocalApic%2Fx86TimerLib.c;h=87c33a7c5ddc030f5a91c9196e7615aa206761d6;hb=34913f248c5297dd8976c095763b7e44ed645d92;hp=09b614119da174b1d272aa25bfc414935249eb13;hpb=f23d790a799c291ed3e732fd99c4c2fcfb4d8294;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index 09b614119d..87c33a7c5d 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -210,7 +210,7 @@ GetPerformanceCounter ( VOID ) { - return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); + return (UINT64)(UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); } /** @@ -255,5 +255,5 @@ GetPerformanceCounterProperties ( *EndValue = 0; } - return InternalX86GetTimerFrequency (ApicBase); + return (UINT64)InternalX86GetTimerFrequency (ApicBase); }