mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
ArmPlatformPkg/Sec: Move ArmGicSetupNonSecure() prior to initialize platform-specific security bit
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13127 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
59a2b365ea
commit
80dfbc1122
@ -146,6 +146,10 @@ TrustedWorldInitialization (
|
|||||||
|
|
||||||
// Setup the Trustzone Chipsets
|
// Setup the Trustzone Chipsets
|
||||||
if (IS_PRIMARY_CORE(MpId)) {
|
if (IS_PRIMARY_CORE(MpId)) {
|
||||||
|
// Transfer the interrupt to Non-secure World
|
||||||
|
ArmGicSetupNonSecure (PcdGet32(PcdGicDistributorBase), PcdGet32(PcdGicInterruptInterfaceBase));
|
||||||
|
|
||||||
|
// Initialize platform specific security policy
|
||||||
ArmPlatformTrustzoneInit ();
|
ArmPlatformTrustzoneInit ();
|
||||||
|
|
||||||
if (ArmIsMpCore()) {
|
if (ArmIsMpCore()) {
|
||||||
@ -160,9 +164,6 @@ TrustedWorldInitialization (
|
|||||||
ArmCpuSynchronizeWait (ARM_CPU_EVENT_SECURE_INIT);
|
ArmCpuSynchronizeWait (ARM_CPU_EVENT_SECURE_INIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer the interrupt to Non-secure World
|
|
||||||
ArmGicSetupNonSecure (PcdGet32(PcdGicDistributorBase), PcdGet32(PcdGicInterruptInterfaceBase));
|
|
||||||
|
|
||||||
// Call the Platform specific fucntion to execute additional actions if required
|
// Call the Platform specific fucntion to execute additional actions if required
|
||||||
JumpAddress = PcdGet32 (PcdFvBaseAddress);
|
JumpAddress = PcdGet32 (PcdFvBaseAddress);
|
||||||
ArmPlatformSecExtraAction (MpId, &JumpAddress);
|
ArmPlatformSecExtraAction (MpId, &JumpAddress);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user