blob: c50254df29d130ac07c3af14c6acadccad16d02d [file] [log] [blame]
Asami Doif7952422019-06-11 16:01:31 +09001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2019 Asami Doi <d0iasm.pub@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#include <cbmem.h>
10#include <ramdetect.h>
11#include <symbols.h>
12
13void *cbmem_top(void)
14{
15 return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
16}