mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
Fixed tracker #52
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@228 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
267f7f10ec
commit
b3ccb7ef12
@ -25,18 +25,18 @@ DelayWorker (
|
|||||||
IN UINT64 NDelay
|
IN UINT64 NDelay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Ticks;
|
UINT64 Ticks;
|
||||||
|
|
||||||
Ticks = (UINTN)GetPerformanceCounter ();
|
Ticks = GetPerformanceCounter ();
|
||||||
Ticks -= (UINTN)DivU64x32 (
|
Ticks -= DivU64x32 (
|
||||||
MultU64x64 (
|
MultU64x64 (
|
||||||
GetPerformanceCounterProperties (NULL, NULL),
|
GetPerformanceCounterProperties (NULL, NULL),
|
||||||
NDelay
|
NDelay
|
||||||
),
|
),
|
||||||
1000000000u
|
1000000000u
|
||||||
);
|
);
|
||||||
while (Ticks >= GetPerformanceCounter ());
|
while (Ticks <= GetPerformanceCounter ());
|
||||||
return Ticks;
|
return (UINTN)Ticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user