mirror of https://github.com/acidanthera/audk.git
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:
parent
1c47256758
commit
a2733a33ab
|
@ -1772,6 +1772,27 @@ public class AutoGen {
|
||||||
*/
|
*/
|
||||||
void ExternCallBackToAutoGenC(StringBuffer fileBuffer)
|
void ExternCallBackToAutoGenC(StringBuffer fileBuffer)
|
||||||
throws BuildException {
|
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();
|
String moduleType = this.moduleId.getModuleType();
|
||||||
boolean UefiOrDxeModule = false;
|
boolean UefiOrDxeModule = false;
|
||||||
int Count = 0;
|
int Count = 0;
|
||||||
|
|
|
@ -764,6 +764,6 @@ NormalizePath (
|
||||||
Visitor++;
|
Visitor++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Visitor;
|
return OldPathName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue