Fix EDKT186.

Fix EDKT148.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1230 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qouyang 2006-08-10 06:09:10 +00:00
parent 1c47256758
commit a2733a33ab
2 changed files with 22 additions and 1 deletions

View File

@ -1772,6 +1772,27 @@ public class AutoGen {
*/
void ExternCallBackToAutoGenC(StringBuffer fileBuffer)
throws BuildException {
//
// Collect module's <SetVirtualAddressMapCallBack> and
// <ExitBootServiceCallBack> and add to setVirtualAddList
// exitBootServiceList.
//
String[] setVirtuals = SurfaceAreaQuery.getSetVirtualAddressMapCallBackArray();
String[] exitBoots = SurfaceAreaQuery.getExitBootServicesCallBackArray();
if (setVirtuals != null) {
for (int j = 0; j < setVirtuals.length; j++) {
this.setVirtalAddList.add(setVirtuals[j]);
}
}
if (exitBoots != null) {
for (int k = 0; k < exitBoots.length; k++) {
this.exitBootServiceList.add(exitBoots[k]);
}
}
//
// Add c code in autogen.c which relate to <SetVirtualAddressMapCallBack>
// and <ExitBootServicesCallBack>
//
String moduleType = this.moduleId.getModuleType();
boolean UefiOrDxeModule = false;
int Count = 0;

View File

@ -764,6 +764,6 @@ NormalizePath (
Visitor++;
}
return Visitor;
return OldPathName;
}