arm_tzc_dram.ld.S 817 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2017-2023, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef ARM_TZC_DRAM_LD_S
  7. #define ARM_TZC_DRAM_LD_S
  8. #include <lib/xlat_tables/xlat_tables_defs.h>
  9. MEMORY {
  10. EL3_SEC_DRAM (rw): ORIGIN = ARM_EL3_TZC_DRAM1_BASE, LENGTH = ARM_EL3_TZC_DRAM1_SIZE
  11. }
  12. SECTIONS
  13. {
  14. . = ARM_EL3_TZC_DRAM1_BASE;
  15. ASSERT(. == ALIGN(PAGE_SIZE),
  16. "ARM_EL3_TZC_DRAM_BASE address is not aligned on a page boundary.")
  17. .el3_tzc_dram (NOLOAD) : ALIGN(PAGE_SIZE) {
  18. __PLAT_SPMC_SHMEM_DATASTORE_START__ = .;
  19. *(.arm_spmc_shmem_datastore)
  20. __PLAT_SPMC_SHMEM_DATASTORE_END__ = .;
  21. __EL3_SEC_DRAM_START__ = .;
  22. *(.arm_el3_tzc_dram)
  23. __EL3_SEC_DRAM_UNALIGNED_END__ = .;
  24. . = ALIGN(PAGE_SIZE);
  25. __EL3_SEC_DRAM_END__ = .;
  26. } >EL3_SEC_DRAM
  27. }
  28. #endif /* ARM_TZC_DRAM_LD_S */