diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-26 17:07:23 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-26 17:07:23 +0000 |
commit | bf7d7a673b1d18829aa2d638be6f2ce84fb91ead (patch) | |
tree | 8a792448f086a7a628f716b6cf13d7ad87dc06cc /ArmPlatformPkg/Sec/Sec.c | |
parent | 0620eec942075f09aab7eb34fd695032eb3e9c15 (diff) | |
download | edk2-platforms-bf7d7a673b1d18829aa2d638be6f2ce84fb91ead.tar.xz |
ArmPlatformPkg/Sec: Initialize the GIC when Trustzone Support is not enabled
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
Diffstat (limited to 'ArmPlatformPkg/Sec/Sec.c')
-rw-r--r-- | ArmPlatformPkg/Sec/Sec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Sec/Sec.c b/ArmPlatformPkg/Sec/Sec.c index 6f8bce8338..508f418ce3 100644 --- a/ArmPlatformPkg/Sec/Sec.c +++ b/ArmPlatformPkg/Sec/Sec.c @@ -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(). |