blob: 7f8ec3dd6abe6331b0aaec8a7f6ba33320a88551 [file] [log] [blame]
Julius Wernerec5e5e02014-08-20 15:29:56 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2014 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Julius Wernerec5e5e02014-08-20 15:29:56 -070014 */
15
16#include <memlayout.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -070017#include <arch/header.ld>
Patrick Rudolphc6ba36f2019-06-12 09:48:31 +020018#include <mainboard/addressmap.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -070019
Patrick Rudolphc6ba36f2019-06-12 09:48:31 +020020//Stages start after CBFS in DRAM
21#define STAGES_START (QEMU_VIRT_DRAM + CONFIG_ROM_SIZE)
Philipp Hug2ef569a2018-12-31 14:13:47 +010022
Julius Wernerec5e5e02014-08-20 15:29:56 -070023SECTIONS
24{
Patrick Rudolphc6ba36f2019-06-12 09:48:31 +020025 DRAM_START(QEMU_VIRT_DRAM)
26 BOOTBLOCK(QEMU_VIRT_DRAM, 64K)
27 // CBFS goes here
28 STACK(STAGES_START, 4K)
29 ROMSTAGE(STAGES_START + 64K, 128K)
30 PRERAM_CBMEM_CONSOLE(STAGES_START + 192K, 8K)
31 RAMSTAGE(STAGES_START + 200K, 16M)
Julius Wernerec5e5e02014-08-20 15:29:56 -070032}