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:
yshang1
2007-10-11 11:12:28 +00:00
parent a021b849f2
commit 4199d92d1c
7 changed files with 109 additions and 30 deletions

View File

@@ -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;
}