]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/Sec: Initialize the GIC when Trustzone Support is not enabled
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Apr 2011 17:07:23 +0000 (17:07 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Apr 2011 17:07:23 +0000 (17:07 +0000)
The GIC was not enabled on MPCore platform with Trustzone support disabled.

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

ArmPlatformPkg/Sec/Sec.c

index 6f8bce8338538d7ef7f103604e60b46633476c24..508f418ce33cef4a65bc5bbfcab8ef6b4ff554a9 100644 (file)
@@ -192,6 +192,9 @@ CEntryPoint (
     }
 
     // Trustzone is not enabled, just enable the Distributor and CPU interface
+    if (CoreId == ARM_PRIMARY_CORE) {
+      PL390GicEnableDistributor (PcdGet32(PcdGicDistributorBase));
+    }
     PL390GicEnableInterruptInterface(PcdGet32(PcdGicInterruptInterfaceBase));
 
     // With Trustzone support the transition from Sec to Normal world is done by return_from_exception().