Revision: 14501
          http://sourceforge.net/p/edk2/code/14501
Author:   oliviermartin
Date:     2013-07-24 11:54:02 +0000 (Wed, 24 Jul 2013)
Log Message:
-----------
ArmPkg/BdsLib: AArch64 MPCore Linux 'spin-table' boot cache fix

Clean data cache after initialising mailboxes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c

Modified: trunk/edk2/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c
===================================================================
--- trunk/edk2/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c   2013-07-24 
11:50:31 UTC (rev 14500)
+++ trunk/edk2/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c   2013-07-24 
11:54:02 UTC (rev 14501)
@@ -298,9 +298,6 @@
     // Update the MailboxBase variable used in the pen code
     *(UINTN*)(PenBase + ((UINTN)&AsmMailboxbase - 
(UINTN)&SecondariesPenStart)) = MailBoxBase;
 
-    // Flush caches to make sure our pen gets to mem before we free the cores.
-    ArmCleanDataCache();
-
     for (Index=0; Index < gST->NumberOfTableEntries; Index++) {
       // Check for correct GUID type
       if (CompareGuid (&gArmMpCoreInfoGuid, 
&(gST->ConfigurationTable[Index].VendorGuid))) {
@@ -323,6 +320,8 @@
         }
       }
     }
+    // Flush caches to make sure our pen gets to mem before we free the cores.
+    ArmCleanDataCache();
   }
 
   // By setting address=0 we leave the memory allocation to the function

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to