arm_tzc_dram.ld.S 693 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3
4
5
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
7
#ifndef ARM_TZC_DRAM_LD_S__
#define ARM_TZC_DRAM_LD_S__
8

9
10
#include <xlat_tables_defs.h>

11
12
13
14
15
16
17
MEMORY {
    EL3_SEC_DRAM (rw): ORIGIN = ARM_EL3_TZC_DRAM1_BASE, LENGTH = ARM_EL3_TZC_DRAM1_SIZE
}

SECTIONS
{
	. = 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
22
23
24
	__EL3_SEC_DRAM_START__ = .;
	*(arm_el3_tzc_dram)
	__EL3_SEC_DRAM_UNALIGNED_END__ = .;

25
	. = ALIGN(PAGE_SIZE);
26
27
28
29
	__EL3_SEC_DRAM_END__ = .;
	} >EL3_SEC_DRAM
}

30
#endif /* ARM_TZC_DRAM_LD_S__ */