coreboot-kgpe-d16/src/soc/ucb/riscv/cbmem.c

11 lines
221 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0-only */
#include <cbmem.h>
#include <symbols.h>
#include <ramdetect.h>
void *cbmem_top_chipset(void)
{
return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
}