Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 1 | /* |
Madhukar Pappireddy | 8afa667 | 2024-07-18 18:03:42 -0500 | [diff] [blame] | 2 | * Copyright (c) 2017-2024, ARM Limited and Contributors. All rights reserved. |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 6 | #ifndef PLAT_LD_S |
| 7 | #define PLAT_LD_S |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 8 | |
Madhukar Pappireddy | 8afa667 | 2024-07-18 18:03:42 -0500 | [diff] [blame] | 9 | #include <lib/xlat_tables/xlat_tables_defs.h> |
| 10 | |
| 11 | MEMORY { |
| 12 | EL3_SEC_DRAM (rw): ORIGIN = ARM_EL3_TZC_DRAM1_BASE, LENGTH = ARM_EL3_TZC_DRAM1_SIZE |
| 13 | } |
| 14 | |
| 15 | SECTIONS |
| 16 | { |
| 17 | . = ARM_EL3_TZC_DRAM1_BASE; |
| 18 | ASSERT(. == ALIGN(PAGE_SIZE), |
| 19 | "ARM_EL3_TZC_DRAM_BASE address is not aligned on a page boundary.") |
| 20 | .el3_tzc_dram (NOLOAD) : ALIGN(PAGE_SIZE) { |
| 21 | __PLAT_SPMC_SHMEM_DATASTORE_START__ = .; |
| 22 | *(.arm_spmc_shmem_datastore) |
| 23 | __PLAT_SPMC_SHMEM_DATASTORE_END__ = .; |
| 24 | __EL3_SEC_DRAM_START__ = .; |
| 25 | *(.arm_el3_tzc_dram) |
| 26 | #if SEPARATE_SIMD_SECTION |
| 27 | . = ALIGN(16); |
| 28 | *(.simd_context) |
| 29 | #endif |
| 30 | __EL3_SEC_DRAM_UNALIGNED_END__ = .; |
| 31 | |
| 32 | . = ALIGN(PAGE_SIZE); |
| 33 | __EL3_SEC_DRAM_END__ = .; |
| 34 | } >EL3_SEC_DRAM |
| 35 | } |
Ambroise Vincent | e8b10e2 | 2019-07-16 17:19:38 +0100 | [diff] [blame] | 36 | |
| 37 | #if RECLAIM_INIT_CODE |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 38 | #include <plat/arm/common/arm_reclaim_init.ld.S> |
Ambroise Vincent | e8b10e2 | 2019-07-16 17:19:38 +0100 | [diff] [blame] | 39 | #endif /* RECLAIM_INIT_CODE */ |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 40 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 41 | #endif /* PLAT_LD_S */ |