summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c')
-rw-r--r--MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c3
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;
}
/**