blob: 8209433020e31fe06835d40cf05a12ea4f4645d5 [file] [log] [blame]
Yaroslav Kurlaevc1de9e82021-07-02 14:34:00 +07001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <memlayout.h>
4
5#include <arch/header.ld>
6
7SECTIONS
8{
9 DRAM_START(0x0)
10
11 BOOTBLOCK(0, 32K)
12
Yaroslav Kurlaev956a8b62021-07-06 22:38:37 +070013 ROMSTAGE(0x1f00000, 1M)
Yaroslav Kurlaevc1de9e82021-07-02 14:34:00 +070014
Yaroslav Kurlaev956a8b62021-07-06 22:38:37 +070015#if !ENV_RAMSTAGE
16 STACK(0x2000000, 32K)
17#endif
Yaroslav Kurlaevc1de9e82021-07-02 14:34:00 +070018
Yaroslav Kurlaev956a8b62021-07-06 22:38:37 +070019 FMAP_CACHE(0x2108000, 4K)
20 CBFS_MCACHE(0x2109000, 8K)
21 TIMESTAMP(0x210b000, 4K)
22 CBFS_CACHE(0x210c000, 512K)
23 PRERAM_CBMEM_CONSOLE(0x218c000, 128K)
24
25 /* By default all memory addresses are affected by the value of HRMOR
26 * (Hypervisor Real Mode Offset Register) which is ORed to them. HRMOR
27 * has initial value of 0x8000000 in QEMU and is changed to 0 in
28 * ramstage. This means that before ramstage 0 actually points to
29 * 0x8000000. */
30#if ENV_RAMSTAGE
31 STACK(0xa000000, 32K)
32#endif
33 RAMSTAGE(0xa008000, 1M)
Yaroslav Kurlaevc1de9e82021-07-02 14:34:00 +070034}