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

9
#include <lib/xlat_tables/xlat_tables_defs.h>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <platform_def.h>

MEMORY {
    SRAM (rwx): ORIGIN = BL31_SRAM_BASE, LENGTH = DEVICE_SRAM_SIZE
    PRAM (r): ORIGIN = BL31_LIMIT - DEVICE_SRAM_SIZE, LENGTH = DEVICE_SRAM_SIZE
}

SECTIONS
{
	/* SRAM_COPY is in PRAM */
	. = BL31_LIMIT - DEVICE_SRAM_SIZE;
	__SRAM_COPY_START__ = .;

	.system_ram : {
		/* system ram start is in SRAM */
		__system_ram_start__ = .;
		*(.system_ram*)
		*iic_dvfs.o(.rodata)
	        __system_ram_end__ = .;
	} >SRAM AT>PRAM

    ASSERT(__BL31_END__ <= BL31_LIMIT - DEVICE_SRAM_SIZE,
    "BL31 image too large - writing on top of SRAM!")

}

36
#endif /* RCAR_PLAT_LD_S */