Fix EDKT186.
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 10 Aug 2006 06:09:10 +0000 (06:09 +0000)
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 10 Aug 2006 06:09:10 +0000 (06:09 +0000)
Fix EDKT148.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1230 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java
Tools/Source/TianoTools/FlashMap/FlashMap.c

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