plat.ld.S 765 Bytes
Newer Older
tony.xie's avatar
tony.xie committed
1
/*
Lin Huang's avatar
Lin Huang committed
2
 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
tony.xie's avatar
tony.xie committed
3
 *
4
 * SPDX-License-Identifier: BSD-3-Clause
tony.xie's avatar
tony.xie committed
5
6
7
8
9
 */
#ifndef __ROCKCHIP_PLAT_LD_S__
#define __ROCKCHIP_PLAT_LD_S__

MEMORY {
Lin Huang's avatar
Lin Huang committed
10
    PMUSRAM (rwx): ORIGIN = PMUSRAM_BASE, LENGTH = PMUSRAM_RSIZE
tony.xie's avatar
tony.xie committed
11
12
13
14
}

SECTIONS
{
Lin Huang's avatar
Lin Huang committed
15
	. = PMUSRAM_BASE;
tony.xie's avatar
tony.xie committed
16
17

	/*
Lin Huang's avatar
Lin Huang committed
18
19
20
	 * pmu_cpuson_entrypoint request address
	 * align 64K when resume, so put it in the
	 * start of pmusram
tony.xie's avatar
tony.xie committed
21
	 */
Lin Huang's avatar
Lin Huang committed
22
23
24
25
26
27
28
29
30
31
32
	.text_pmusram : {
		ASSERT(. == ALIGN(64 * 1024),
			".pmusram.entry request 64K aligned.");
		*(.pmusram.entry)
		__bl31_pmusram_text_start = .;
		*(.pmusram.text)
		*(.pmusram.rodata)
		__bl31_pmusram_text_end = .;
		__bl31_pmusram_data_start = .;
		*(.pmusram.data)
		__bl31_pmusram_data_end = .;
tony.xie's avatar
tony.xie committed
33

Lin Huang's avatar
Lin Huang committed
34
	} >PMUSRAM
tony.xie's avatar
tony.xie committed
35
36
37
}

#endif /* __ROCKCHIP_PLAT_LD_S__ */