Add BasePalCallLibNull instance in MdePkg. It is useful when building IPF components in open source packages.
Use meaningful arguments defined in PalLib.h when invoking PalCall(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4094 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -161,13 +161,13 @@ GetPerformanceCounterProperties (
|
||||
*EndValue = (UINT64)(-1);
|
||||
}
|
||||
|
||||
PalRet = PalCall (13, 0, 0, 0);
|
||||
PalRet = PalCall (PAL_FREQ_BASE, 0, 0, 0);
|
||||
if (PalRet.Status != 0) {
|
||||
return 1000000;
|
||||
}
|
||||
BaseFrequence = PalRet.r9;
|
||||
|
||||
PalRet = PalCall (14, 0, 0, 0);
|
||||
PalRet = PalCall (PAL_FREQ_RATIOS, 0, 0, 0);
|
||||
if (PalRet.Status != 0) {
|
||||
return 1000000;
|
||||
}
|
||||
|
Reference in New Issue
Block a user