diff options
author | jyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-27 07:35:20 +0000 |
---|---|---|
committer | jyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-27 07:35:20 +0000 |
commit | 54e4b37e367fe30765de11da424099b481c2e93a (patch) | |
tree | 2d18bfca217ea7781e4047f92bab1b07b6f17368 /UnixPkg/UnixSnpDxe/ComponentName.c | |
parent | 452f020794fe6381a3394a96f1b8b8c4fc3309ff (diff) | |
download | edk2-platforms-54e4b37e367fe30765de11da424099b481c2e93a.tar.xz |
Fix 2 BootScript thunk issue on MEM_POLL.
1) MEM_POLL stall time is incorrect.
Framework version: Duration is used for Stall(), which is Microseconds.
Total time is: Duration(Microseconds) * LoopTimes.
PI version: Duration is always 100ns. Delay is LoopTimes.
Total time is: 100ns * Delay.
So Delay = Duration(Microseconds) * LoopTimes / 100ns
= Duration * 1000ns * LoopTimes / 100ns
= Duration * 10 * LoopTimes
2) MEM_POLL BitMask/BitValue order is incorrect.
Framework version: First BitMask, then BitValue
PI version: First Data, then DataMask
So we revert their order in function call
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11595 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/UnixSnpDxe/ComponentName.c')
0 files changed, 0 insertions, 0 deletions