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