]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(spmd): map SPMC manifest region as EL3_PAS
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Tue, 7 Feb 2023 11:26:38 +0000 (11:26 +0000)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Tue, 7 Feb 2023 11:26:38 +0000 (11:26 +0000)
Mapped SPMC manifest region as EL3_PAS so that it will get
mapped as Root region in RME enabled system otherwise Secure
region.

Change-Id: I1af5344d7516e948d5b3664bcdb94cdfc367cd78
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
plat/common/plat_spmd_manifest.c

index b1fc13ceeaf8a4cd3c50d024c2e2702e816a7452..5f7d1428dd2babe9dda6c6057e438f0e2499f6c9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2020-2023, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -150,7 +150,7 @@ int plat_spm_core_manifest_load(spmc_manifest_attribute_t *manifest,
        rc = mmap_add_dynamic_region((unsigned long long)pm_base_align,
                                     pm_base_align,
                                     PAGE_SIZE,
-                                    MT_RO_DATA);
+                                    MT_RO_DATA | EL3_PAS);
        if (rc != 0) {
                ERROR("Error while mapping SPM Core manifest (%d).\n", rc);
                return rc;