blob: 3f738be07b86998a1e029fe36f86fdf45ba9b14b [file] [log] [blame]
Kyösti Mälkkie7e847c2013-06-27 08:20:09 +03001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
16 */
17
18#include <console/console.h>
19#include <cbmem.h>
20
21#if !CONFIG_DYNAMIC_CBMEM
22/* This is for compatibility with old boards only. Any new chipset and board
23 * must implement get_top_of_ram() for both romstage and ramstage to support
24 * features like CAR_MIGRATION and CBMEM_CONSOLE.
25 */
Kyösti Mälkki2b790f62013-09-03 05:25:57 +030026void set_top_of_ram(uint64_t ramtop)
Kyösti Mälkkie7e847c2013-06-27 08:20:09 +030027{
Kyösti Mälkki2b790f62013-09-03 05:25:57 +030028 high_tables_base = ramtop - HIGH_MEMORY_SIZE;
29 high_tables_size = HIGH_MEMORY_SIZE;
Kyösti Mälkkie7e847c2013-06-27 08:20:09 +030030 printk(BIOS_DEBUG, "high_tables_base: %08llx, size %lld\n",
31 high_tables_base, high_tables_size);
32}
33#endif