diff options
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index dd240d88d0..fe18878d19 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -210,7 +210,8 @@ GetPerformanceCounter ( VOID
)
{
- return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ());
+ volatile static UINT64 Mask = 0xffffffff;
+ return InternalX86GetTimerTick (InternalX86GetApicBase ()) & Mask;
}
/**
|