Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 7c2a3ca | 2018-02-23 15:07:54 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Dan Handley | ed6ff95 | 2014-05-14 17:44:19 +0100 | [diff] [blame] | 7 | #include <platform_def.h> |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 8 | #include <xlat_tables_defs.h> |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 9 | |
| 10 | OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT) |
| 11 | OUTPUT_ARCH(PLATFORM_LINKER_ARCH) |
Jeenu Viswambharan | 2a30a75 | 2014-03-11 11:06:45 +0000 | [diff] [blame] | 12 | ENTRY(bl31_entrypoint) |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 13 | |
| 14 | |
| 15 | MEMORY { |
Juan Castillo | fd8c077 | 2014-09-16 10:40:35 +0100 | [diff] [blame] | 16 | RAM (rwx): ORIGIN = BL31_BASE, LENGTH = BL31_LIMIT - BL31_BASE |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 17 | } |
| 18 | |
Caesar Wang | d90f43e | 2016-10-11 09:36:00 +0800 | [diff] [blame] | 19 | #ifdef PLAT_EXTRA_LD_SCRIPT |
| 20 | #include <plat.ld.S> |
| 21 | #endif |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 22 | |
| 23 | SECTIONS |
| 24 | { |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 25 | . = BL31_BASE; |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 26 | ASSERT(. == ALIGN(PAGE_SIZE), |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 27 | "BL31_BASE address is not aligned on a page boundary.") |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 28 | |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 29 | __BL31_START__ = .; |
| 30 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 31 | #if SEPARATE_CODE_AND_RODATA |
| 32 | .text . : { |
| 33 | __TEXT_START__ = .; |
| 34 | *bl31_entrypoint.o(.text*) |
| 35 | *(.text*) |
| 36 | *(.vectors) |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 37 | . = ALIGN(PAGE_SIZE); |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 38 | __TEXT_END__ = .; |
| 39 | } >RAM |
| 40 | |
| 41 | .rodata . : { |
| 42 | __RODATA_START__ = .; |
| 43 | *(.rodata*) |
| 44 | |
| 45 | /* Ensure 8-byte alignment for descriptors and ensure inclusion */ |
| 46 | . = ALIGN(8); |
| 47 | __RT_SVC_DESCS_START__ = .; |
| 48 | KEEP(*(rt_svc_descs)) |
| 49 | __RT_SVC_DESCS_END__ = .; |
| 50 | |
| 51 | #if ENABLE_PMF |
| 52 | /* Ensure 8-byte alignment for descriptors and ensure inclusion */ |
| 53 | . = ALIGN(8); |
| 54 | __PMF_SVC_DESCS_START__ = .; |
| 55 | KEEP(*(pmf_svc_descs)) |
| 56 | __PMF_SVC_DESCS_END__ = .; |
| 57 | #endif /* ENABLE_PMF */ |
| 58 | |
| 59 | /* |
| 60 | * Ensure 8-byte alignment for cpu_ops so that its fields are also |
| 61 | * aligned. Also ensure cpu_ops inclusion. |
| 62 | */ |
| 63 | . = ALIGN(8); |
| 64 | __CPU_OPS_START__ = .; |
| 65 | KEEP(*(cpu_ops)) |
| 66 | __CPU_OPS_END__ = .; |
| 67 | |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 68 | /* |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 69 | * Keep the .got section in the RO section as it is patched |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 70 | * prior to enabling the MMU and having the .got in RO is better for |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 71 | * security. GOT is a table of addresses so ensure 8-byte alignment. |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 72 | */ |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 73 | . = ALIGN(8); |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 74 | __GOT_START__ = .; |
| 75 | *(.got) |
| 76 | __GOT_END__ = .; |
| 77 | |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 78 | /* Place pubsub sections for events */ |
| 79 | . = ALIGN(8); |
| 80 | #include <pubsub_events.h> |
| 81 | |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 82 | . = ALIGN(PAGE_SIZE); |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 83 | __RODATA_END__ = .; |
| 84 | } >RAM |
| 85 | #else |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 86 | ro . : { |
| 87 | __RO_START__ = .; |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 88 | *bl31_entrypoint.o(.text*) |
| 89 | *(.text*) |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 90 | *(.rodata*) |
Achin Gupta | 7421b46 | 2014-02-01 18:53:26 +0000 | [diff] [blame] | 91 | |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 92 | /* Ensure 8-byte alignment for descriptors and ensure inclusion */ |
Achin Gupta | 7421b46 | 2014-02-01 18:53:26 +0000 | [diff] [blame] | 93 | . = ALIGN(8); |
| 94 | __RT_SVC_DESCS_START__ = .; |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 95 | KEEP(*(rt_svc_descs)) |
Achin Gupta | 7421b46 | 2014-02-01 18:53:26 +0000 | [diff] [blame] | 96 | __RT_SVC_DESCS_END__ = .; |
| 97 | |
Yatharth Kochar | 9518d02 | 2016-03-11 14:20:19 +0000 | [diff] [blame] | 98 | #if ENABLE_PMF |
| 99 | /* Ensure 8-byte alignment for descriptors and ensure inclusion */ |
| 100 | . = ALIGN(8); |
| 101 | __PMF_SVC_DESCS_START__ = .; |
| 102 | KEEP(*(pmf_svc_descs)) |
| 103 | __PMF_SVC_DESCS_END__ = .; |
| 104 | #endif /* ENABLE_PMF */ |
| 105 | |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 106 | /* |
| 107 | * Ensure 8-byte alignment for cpu_ops so that its fields are also |
| 108 | * aligned. Also ensure cpu_ops inclusion. |
| 109 | */ |
| 110 | . = ALIGN(8); |
| 111 | __CPU_OPS_START__ = .; |
| 112 | KEEP(*(cpu_ops)) |
| 113 | __CPU_OPS_END__ = .; |
| 114 | |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 115 | /* |
| 116 | * Keep the .got section in the RO section as it is patched |
| 117 | * prior to enabling the MMU and having the .got in RO is better for |
| 118 | * security. GOT is a table of addresses so ensure 8-byte alignment. |
| 119 | */ |
| 120 | . = ALIGN(8); |
| 121 | __GOT_START__ = .; |
| 122 | *(.got) |
| 123 | __GOT_END__ = .; |
| 124 | |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 125 | /* Place pubsub sections for events */ |
| 126 | . = ALIGN(8); |
| 127 | #include <pubsub_events.h> |
| 128 | |
Achin Gupta | b739f22 | 2014-01-18 16:50:09 +0000 | [diff] [blame] | 129 | *(.vectors) |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 130 | __RO_END_UNALIGNED__ = .; |
| 131 | /* |
| 132 | * Memory page(s) mapped to this section will be marked as read-only, |
| 133 | * executable. No RW data from the next section must creep in. |
| 134 | * Ensure the rest of the current memory page is unused. |
| 135 | */ |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 136 | . = ALIGN(PAGE_SIZE); |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 137 | __RO_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 138 | } >RAM |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 139 | #endif |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 140 | |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 141 | ASSERT(__CPU_OPS_END__ > __CPU_OPS_START__, |
| 142 | "cpu_ops not defined for this platform.") |
| 143 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 144 | #if ENABLE_SPM |
| 145 | /* |
| 146 | * Exception vectors of the SPM shim layer. They must be aligned to a 2K |
| 147 | * address, but we need to place them in a separate page so that we can set |
| 148 | * individual permissions to them, so the actual alignment needed is 4K. |
| 149 | * |
| 150 | * There's no need to include this into the RO section of BL31 because it |
| 151 | * doesn't need to be accessed by BL31. |
| 152 | */ |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 153 | spm_shim_exceptions : ALIGN(PAGE_SIZE) { |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 154 | __SPM_SHIM_EXCEPTIONS_START__ = .; |
| 155 | *(.spm_shim_exceptions) |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 156 | . = ALIGN(PAGE_SIZE); |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 157 | __SPM_SHIM_EXCEPTIONS_END__ = .; |
| 158 | } >RAM |
| 159 | #endif |
| 160 | |
Achin Gupta | e9c4a64 | 2015-09-11 16:03:13 +0100 | [diff] [blame] | 161 | /* |
| 162 | * Define a linker symbol to mark start of the RW memory area for this |
| 163 | * image. |
| 164 | */ |
| 165 | __RW_START__ = . ; |
| 166 | |
Douglas Raillard | 306593d | 2017-02-24 18:14:15 +0000 | [diff] [blame] | 167 | /* |
| 168 | * .data must be placed at a lower address than the stacks if the stack |
| 169 | * protector is enabled. Alternatively, the .data.stack_protector_canary |
| 170 | * section can be placed independently of the main .data section. |
| 171 | */ |
| 172 | .data . : { |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 173 | __DATA_START__ = .; |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 174 | *(.data*) |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 175 | __DATA_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 176 | } >RAM |
| 177 | |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 178 | /* |
| 179 | * .rela.dyn needs to come after .data for the read-elf utility to parse |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 180 | * this section correctly. Ensure 8-byte alignment so that the fields of |
| 181 | * RELA data structure are aligned. |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 182 | */ |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 183 | . = ALIGN(8); |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 184 | __RELA_START__ = .; |
| 185 | .rela.dyn . : { |
| 186 | } >RAM |
| 187 | __RELA_END__ = .; |
| 188 | |
Sandrine Bailleux | e2e0c65 | 2014-06-16 16:12:27 +0100 | [diff] [blame] | 189 | #ifdef BL31_PROGBITS_LIMIT |
Juan Castillo | 7d19941 | 2015-12-14 09:35:25 +0000 | [diff] [blame] | 190 | ASSERT(. <= BL31_PROGBITS_LIMIT, "BL31 progbits has exceeded its limit.") |
Sandrine Bailleux | e2e0c65 | 2014-06-16 16:12:27 +0100 | [diff] [blame] | 191 | #endif |
| 192 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 193 | stacks (NOLOAD) : { |
| 194 | __STACKS_START__ = .; |
| 195 | *(tzfw_normal_stacks) |
| 196 | __STACKS_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 197 | } >RAM |
| 198 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 199 | /* |
| 200 | * The .bss section gets initialised to 0 at runtime. |
Douglas Raillard | 21362a9 | 2016-12-02 13:51:54 +0000 | [diff] [blame] | 201 | * Its base address should be 16-byte aligned for better performance of the |
| 202 | * zero-initialization code. |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 203 | */ |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 204 | .bss (NOLOAD) : ALIGN(16) { |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 205 | __BSS_START__ = .; |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 206 | *(.bss*) |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 207 | *(COMMON) |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 208 | #if !USE_COHERENT_MEM |
| 209 | /* |
| 210 | * Bakery locks are stored in normal .bss memory |
| 211 | * |
| 212 | * Each lock's data is spread across multiple cache lines, one per CPU, |
| 213 | * but multiple locks can share the same cache line. |
| 214 | * The compiler will allocate enough memory for one CPU's bakery locks, |
| 215 | * the remaining cache lines are allocated by the linker script |
| 216 | */ |
| 217 | . = ALIGN(CACHE_WRITEBACK_GRANULE); |
| 218 | __BAKERY_LOCK_START__ = .; |
| 219 | *(bakery_lock) |
| 220 | . = ALIGN(CACHE_WRITEBACK_GRANULE); |
Vikram Kanigiri | 405fafe | 2015-09-24 15:45:43 +0100 | [diff] [blame] | 221 | __PERCPU_BAKERY_LOCK_SIZE__ = ABSOLUTE(. - __BAKERY_LOCK_START__); |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 222 | . = . + (__PERCPU_BAKERY_LOCK_SIZE__ * (PLATFORM_CORE_COUNT - 1)); |
| 223 | __BAKERY_LOCK_END__ = .; |
Roberto Vargas | 0099694 | 2017-11-13 13:41:58 +0000 | [diff] [blame] | 224 | |
| 225 | /* |
| 226 | * If BL31 doesn't use any bakery lock then __PERCPU_BAKERY_LOCK_SIZE__ |
| 227 | * will be zero. For this reason, the only two valid values for |
| 228 | * __PERCPU_BAKERY_LOCK_SIZE__ are 0 or the platform defined value |
| 229 | * PLAT_PERCPU_BAKERY_LOCK_SIZE. |
| 230 | */ |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 231 | #ifdef PLAT_PERCPU_BAKERY_LOCK_SIZE |
Roberto Vargas | 0099694 | 2017-11-13 13:41:58 +0000 | [diff] [blame] | 232 | ASSERT((__PERCPU_BAKERY_LOCK_SIZE__ == 0) || (__PERCPU_BAKERY_LOCK_SIZE__ == PLAT_PERCPU_BAKERY_LOCK_SIZE), |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 233 | "PLAT_PERCPU_BAKERY_LOCK_SIZE does not match bakery lock requirements"); |
| 234 | #endif |
| 235 | #endif |
Yatharth Kochar | 9518d02 | 2016-03-11 14:20:19 +0000 | [diff] [blame] | 236 | |
| 237 | #if ENABLE_PMF |
| 238 | /* |
| 239 | * Time-stamps are stored in normal .bss memory |
| 240 | * |
| 241 | * The compiler will allocate enough memory for one CPU's time-stamps, |
| 242 | * the remaining memory for other CPU's is allocated by the |
| 243 | * linker script |
| 244 | */ |
| 245 | . = ALIGN(CACHE_WRITEBACK_GRANULE); |
| 246 | __PMF_TIMESTAMP_START__ = .; |
| 247 | KEEP(*(pmf_timestamp_array)) |
| 248 | . = ALIGN(CACHE_WRITEBACK_GRANULE); |
| 249 | __PMF_PERCPU_TIMESTAMP_END__ = .; |
| 250 | __PERCPU_TIMESTAMP_SIZE__ = ABSOLUTE(. - __PMF_TIMESTAMP_START__); |
| 251 | . = . + (__PERCPU_TIMESTAMP_SIZE__ * (PLATFORM_CORE_COUNT - 1)); |
| 252 | __PMF_TIMESTAMP_END__ = .; |
| 253 | #endif /* ENABLE_PMF */ |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 254 | __BSS_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 255 | } >RAM |
| 256 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 257 | /* |
Jeenu Viswambharan | 97cc9ee | 2014-02-24 15:20:28 +0000 | [diff] [blame] | 258 | * The xlat_table section is for full, aligned page tables (4K). |
Achin Gupta | a0cd989 | 2014-02-09 13:30:38 +0000 | [diff] [blame] | 259 | * Removing them from .bss avoids forcing 4K alignment on |
Antonio Nino Diaz | 7c2a3ca | 2018-02-23 15:07:54 +0000 | [diff] [blame] | 260 | * the .bss section. The tables are initialized to zero by the translation |
| 261 | * tables library. |
Achin Gupta | a0cd989 | 2014-02-09 13:30:38 +0000 | [diff] [blame] | 262 | */ |
| 263 | xlat_table (NOLOAD) : { |
| 264 | *(xlat_table) |
| 265 | } >RAM |
| 266 | |
Soby Mathew | 2ae2043 | 2015-01-08 18:02:44 +0000 | [diff] [blame] | 267 | #if USE_COHERENT_MEM |
Achin Gupta | a0cd989 | 2014-02-09 13:30:38 +0000 | [diff] [blame] | 268 | /* |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 269 | * The base address of the coherent memory section must be page-aligned (4K) |
| 270 | * to guarantee that the coherent data are stored on their own pages and |
| 271 | * are not mixed with normal data. This is required to set up the correct |
| 272 | * memory attributes for the coherent data page tables. |
| 273 | */ |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 274 | coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) { |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 275 | __COHERENT_RAM_START__ = .; |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 276 | /* |
| 277 | * Bakery locks are stored in coherent memory |
| 278 | * |
| 279 | * Each lock's data is contiguous and fully allocated by the compiler |
| 280 | */ |
| 281 | *(bakery_lock) |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 282 | *(tzfw_coherent_mem) |
| 283 | __COHERENT_RAM_END_UNALIGNED__ = .; |
| 284 | /* |
| 285 | * Memory page(s) mapped to this section will be marked |
| 286 | * as device memory. No other unexpected data must creep in. |
| 287 | * Ensure the rest of the current memory page is unused. |
| 288 | */ |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 289 | . = ALIGN(PAGE_SIZE); |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 290 | __COHERENT_RAM_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 291 | } >RAM |
Soby Mathew | 2ae2043 | 2015-01-08 18:02:44 +0000 | [diff] [blame] | 292 | #endif |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 293 | |
Achin Gupta | e9c4a64 | 2015-09-11 16:03:13 +0100 | [diff] [blame] | 294 | /* |
| 295 | * Define a linker symbol to mark end of the RW memory area for this |
| 296 | * image. |
| 297 | */ |
| 298 | __RW_END__ = .; |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 299 | __BL31_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 300 | |
Juan Castillo | 7d19941 | 2015-12-14 09:35:25 +0000 | [diff] [blame] | 301 | ASSERT(. <= BL31_LIMIT, "BL31 image has exceeded its limit.") |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 302 | } |