Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 1 | /* |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2023, 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 | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 6 | #ifndef ARM_TZC_DRAM_LD_S |
| 7 | #define ARM_TZC_DRAM_LD_S |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 8 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 9 | #include <lib/xlat_tables/xlat_tables_defs.h> |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 10 | |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 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; |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 18 | ASSERT(. == ALIGN(PAGE_SIZE), |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 19 | "ARM_EL3_TZC_DRAM_BASE address is not aligned on a page boundary.") |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 20 | .el3_tzc_dram (NOLOAD) : ALIGN(PAGE_SIZE) { |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 21 | __EL3_SEC_DRAM_START__ = .; |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 22 | *(.arm_el3_tzc_dram) |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 23 | __EL3_SEC_DRAM_UNALIGNED_END__ = .; |
| 24 | |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 25 | . = ALIGN(PAGE_SIZE); |
Soby Mathew | 3b5156e | 2017-10-05 12:27:33 +0100 | [diff] [blame] | 26 | __EL3_SEC_DRAM_END__ = .; |
| 27 | } >EL3_SEC_DRAM |
| 28 | } |
| 29 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 30 | #endif /* ARM_TZC_DRAM_LD_S */ |