Fixed EDKT145

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1112 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qouyang 2006-07-27 03:44:58 +00:00
parent 8f55ea7396
commit 1dbcbb6158
1 changed files with 9 additions and 1 deletions

View File

@ -1505,6 +1505,7 @@ public class AutoGen {
switch (CommonDefinition.getModuleType(moduleType)) { switch (CommonDefinition.getModuleType(moduleType)) {
case CommonDefinition.ModuleTypeBase: case CommonDefinition.ModuleTypeBase:
fileBuffer.append("RETURN_STATUS\r\n"); fileBuffer.append("RETURN_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer.append(" VOID\r\n"); fileBuffer.append(" VOID\r\n");
@ -1514,6 +1515,7 @@ public class AutoGen {
case CommonDefinition.ModuleTypePeiCore: case CommonDefinition.ModuleTypePeiCore:
case CommonDefinition.ModuleTypePeim: case CommonDefinition.ModuleTypePeim:
fileBuffer.append("EFI_STATUS\r\n"); fileBuffer.append("EFI_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer fileBuffer
@ -1531,6 +1533,7 @@ public class AutoGen {
case CommonDefinition.ModuleTypeUefiDriver: case CommonDefinition.ModuleTypeUefiDriver:
case CommonDefinition.ModuleTypeUefiApplication: case CommonDefinition.ModuleTypeUefiApplication:
fileBuffer.append("EFI_STATUS\r\n"); fileBuffer.append("EFI_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n"); fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n");
@ -1544,6 +1547,7 @@ public class AutoGen {
// Add ProcessLibraryConstructorList in AutoGen.c // Add ProcessLibraryConstructorList in AutoGen.c
// //
fileBuffer.append("VOID\r\n"); fileBuffer.append("VOID\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append("ProcessLibraryConstructorList (\r\n"); fileBuffer.append("ProcessLibraryConstructorList (\r\n");
switch (CommonDefinition.getModuleType(moduleType)) { switch (CommonDefinition.getModuleType(moduleType)) {
case CommonDefinition.ModuleTypeBase: case CommonDefinition.ModuleTypeBase:
@ -1636,7 +1640,8 @@ public class AutoGen {
for (int i = 0; i < libInstanceList.size(); i++) { for (int i = 0; i < libInstanceList.size(); i++) {
switch (CommonDefinition.getModuleType(moduleType)) { switch (CommonDefinition.getModuleType(moduleType)) {
case CommonDefinition.ModuleTypeBase: case CommonDefinition.ModuleTypeBase:
fileBuffer.append("RETURN_STATUS\n"); fileBuffer.append("RETURN_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer.append(" VOID\r\n"); fileBuffer.append(" VOID\r\n");
@ -1645,6 +1650,7 @@ public class AutoGen {
case CommonDefinition.ModuleTypePeiCore: case CommonDefinition.ModuleTypePeiCore:
case CommonDefinition.ModuleTypePeim: case CommonDefinition.ModuleTypePeim:
fileBuffer.append("EFI_STATUS\r\n"); fileBuffer.append("EFI_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer fileBuffer
@ -1661,6 +1667,7 @@ public class AutoGen {
case CommonDefinition.ModuleTypeUefiDriver: case CommonDefinition.ModuleTypeUefiDriver:
case CommonDefinition.ModuleTypeUefiApplication: case CommonDefinition.ModuleTypeUefiApplication:
fileBuffer.append("EFI_STATUS\r\n"); fileBuffer.append("EFI_STATUS\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append(libInstanceList.get(i)); fileBuffer.append(libInstanceList.get(i));
fileBuffer.append(" (\r\n"); fileBuffer.append(" (\r\n");
fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n"); fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n");
@ -1686,6 +1693,7 @@ public class AutoGen {
case CommonDefinition.ModuleTypeUefiDriver: case CommonDefinition.ModuleTypeUefiDriver:
case CommonDefinition.ModuleTypeUefiApplication: case CommonDefinition.ModuleTypeUefiApplication:
fileBuffer.append("VOID\r\n"); fileBuffer.append("VOID\r\n");
fileBuffer.append("EFIAPI\r\n");
fileBuffer.append("ProcessLibraryDestructorList (\r\n"); fileBuffer.append("ProcessLibraryDestructorList (\r\n");
fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n"); fileBuffer.append(" IN EFI_HANDLE ImageHandle,\r\n");
fileBuffer.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n"); fileBuffer.append(" IN EFI_SYSTEM_TABLE *SystemTable\r\n");