Remove the generation of "Exit" function calling since the UefiApplicationLib has defined the Exit function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2506 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1100,7 +1100,11 @@ public class AutoGen {
|
|||||||
if (!entryPointList[i].equals("")) {
|
if (!entryPointList[i].equals("")) {
|
||||||
fileBuffer.append(" if (SetJump (&mJumpContext) == 0) {\r\n");
|
fileBuffer.append(" if (SetJump (&mJumpContext) == 0) {\r\n");
|
||||||
fileBuffer.append(String.format(" " + debugStr, entryPointList[i], entryPointList[i]));
|
fileBuffer.append(String.format(" " + debugStr, entryPointList[i], entryPointList[i]));
|
||||||
|
if (CommonDefinition.getModuleType(typeStr) == CommonDefinition.ModuleTypeUefiApplication) {
|
||||||
|
fileBuffer.append(" Exit (");
|
||||||
|
} else {
|
||||||
fileBuffer.append(" ExitDriver (");
|
fileBuffer.append(" ExitDriver (");
|
||||||
|
}
|
||||||
fileBuffer.append(entryPointList[i]);
|
fileBuffer.append(entryPointList[i]);
|
||||||
fileBuffer.append(" (ImageHandle, SystemTable));\r\n");
|
fileBuffer.append(" (ImageHandle, SystemTable));\r\n");
|
||||||
fileBuffer.append(" ASSERT (FALSE);\r\n");
|
fileBuffer.append(" ASSERT (FALSE);\r\n");
|
||||||
@ -1113,6 +1117,7 @@ public class AutoGen {
|
|||||||
}
|
}
|
||||||
fileBuffer.append("}\r\n\r\n");
|
fileBuffer.append("}\r\n\r\n");
|
||||||
|
|
||||||
|
if (CommonDefinition.getModuleType(typeStr) != CommonDefinition.ModuleTypeUefiApplication) {
|
||||||
fileBuffer.append("VOID\r\n");
|
fileBuffer.append("VOID\r\n");
|
||||||
fileBuffer.append("EFIAPI\r\n");
|
fileBuffer.append("EFIAPI\r\n");
|
||||||
fileBuffer.append("ExitDriver (\r\n");
|
fileBuffer.append("ExitDriver (\r\n");
|
||||||
@ -1133,6 +1138,7 @@ public class AutoGen {
|
|||||||
}
|
}
|
||||||
fileBuffer.append("}\r\n\r\n");
|
fileBuffer.append("}\r\n\r\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (CommonDefinition.getModuleType(typeStr) == CommonDefinition.ModuleTypeUefiApplication) {
|
if (CommonDefinition.getModuleType(typeStr) == CommonDefinition.ModuleTypeUefiApplication) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user