]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/CTA9x4Sec.c
ArmPlatformPkg/Sec: Allowed the Secondary Cores to set the Secure/Non Secure bits...
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / Library / ArmVExpressLibCTA9x4 / CTA9x4Sec.c
index 0cf07a3caf2cc7df11bebe4f62d2977f17ec4bcf..37140a4a58076c77df8c33325e8da294f8f552bb 100644 (file)
 **/
 VOID
 ArmPlatformTrustzoneInit (
 **/
 VOID
 ArmPlatformTrustzoneInit (
-  VOID
+  IN  UINTN                     MpId
   )
 {
   )
 {
+  // Nothing to do
+  if (!IS_PRIMARY_CORE(MpId)) {
+    return;
+  }
+
   //
   // Setup TZ Protection Controller
   //
   //
   // Setup TZ Protection Controller
   //